Complete Single Server Django Stack Tutorial | Apreche.net

Complete Single Server Django Stack Tutorial | Apreche.net

Advertisements

facebook app for IE10

用facebook php sdk开发应用,在IE10上不能创建相册。
以为是IE10不支持jQuery的Ajax方式,原因却是它记不住facebook的accessToken!

这么做就可以了:

在程序初始化时记录下$accessToken:

$facebook = new Facebook(array(
  'appId'  => $app_id,
  'secret' => $app_secret,
  'cookie' => true,
  'fileUpload' => true,
));

$user = $facebook->getUser();
$accessToken = $facebook -> getAccessToken();

在其他页面想调用$facebook->api()的地方之前:

$facebook -> setAccessToken($accessToken);

Links

How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 | DigitalOcean

How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 | DigitalOcean