我的 Facebook 应用程序加载缓慢。当我摆脱 SDK PHP 时,它变得更快。
我做错了吗?有更快的方法吗?
require $_SERVER['DOCUMENT_ROOT'].'/facebook/src/facebook.php';
$appId = 'appid';
$appSecret = 'appsecret';
// Create your Application instance (replace this with your appId and secret).
$facebook = new Facebook(
array(
'appId' => $appId,
'secret' => $appSecret,
'fileUpload' => true,
'cookie' => true
));
$user = $facebook->getUser();