嗨我无法访问扩展权限,尽管我在登录对话框中询问了这些权限,并在developers.facebook.com的应用管理中添加了这些权限 这是我的代码:
$facebook = new Facebook(array(
'appId' => 'xxxxxxxx',
'secret' => 'xxxxxxxxxx',
'cookie' => false
));
// See if there is a user from a cookie
$fbuser = $facebook->getUser();
if ($fbuser) {
try {
// Proceed knowing you have a logged in user who's authenticated.
$FBUSER = $facebook->api('/me');
$FBUSER1 = $facebook->api('/me/permissions');
print_r($FBUSER1);
} catch (FacebookApiException $e) {
print_r($e);
$USER=false;
}
}
$loginUrl = $facebook->getLoginUrl(array("scope"=>"email, publish_actions"));
print_r($ FBUSER1)的结果是: 排列 ( [data] =>排列 ( ) )
答案 0 :(得分:0)
这里提到的问题是我之后添加了对电子邮件和publish_actions的请求,我的帐户以某种方式不接受,否则使用测试帐户它可以正常工作。所以我想最终找到了答案:)