我得到了关注error
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /home/.../third_party/base_facebook.php on line 1106
我的功能是,
public function isPhotoPermission()
{
$facebook = new Facebook();
$access_token = $facebook->getAccessToken();
$permissions = $facebook->api("/me/permissions","GET",array('access_token' => $access_token));
if( array_key_exists('user_photos', $permissions['data'][0]) )
{
return 1;
}
else
{
return 0;
}
}
那条1106
线是,
1105: protected function throwAPIException($result) {
1106: $e = new FacebookApiException($result);
1107: switch ($e->getType()) { ....
以下代码发生的错误:
$permissions = $facebook->api("/me/permissions","GET",array('access_token' => $access_token));
哪里有问题?感谢提前。