我正在使用http://developers.facebook.com/docs/plugins/registration/上的信息进行注册,并使用Facebook登录用户。我该如何申请此权限?我试过用
&scope=permission,permission,etc,etc
在字段之前,然后在字段之后。无论如何,系统仍然说
The user hasn't authorized the application to perform this action
非常感谢有关此问题的任何帮助!
注册后,我尝试如下,它仍然吐出相同的错误:
if ($_REQUEST) {
require 'facebook.php';
$facebook = new Facebook(array('appId' => APP_ID,'secret' => APP_SECRET));
$user = $facebook->getUser();
if ($user) {
$loginUrl = $facebook->getLoginUrl(array('scope' => 'email,publish_stream'));
$statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> 'Testing posting to may wall', 'cb' => ''));
} else {
$loginUrl = $facebook->getLoginUrl(
array('scope' => 'email,publish_stream','redirect_uri' => REDIRECT_URL )
);
}
}
答案 0 :(得分:0)
您需要在注册后单独请求权限。目前无法通过注册插件请求权限。
此功能在愿望清单中: http://bugs.developers.facebook.net/show_bug.cgi?id=14733