1

嗨,我无法访问扩展权限,尽管我在登录对话框中要求他们并在 developer.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) 的结果是: Array ( [data] => Array ( ) )

4

1 回答 1

0

这里提到的问题是我稍后添加了对电子邮件和 publish_actions 的请求,而我的帐户不知何故不接受,否则使用测试帐户可以正常工作。所以我想我终于找到了答案:)

于 2013-01-29T19:17:45.890 回答