开发者

facebook connect set status error

When I update status from facebook connect, following error occur

Uncaught exception 'FacebookRestClientException' with message 'Updating status require开发者_如何学Pythons the extended permission status_update'

I also allow permission with

<script>
FB.Connect.showPermissionDialog("offline_access", function(perms) {
   if (!perms) {
     //continue_without_permission();
   } else {
     //save_session();

   }
 });
</script>

My PHP code is

$res=$fb->api_client->call_method("facebook.status.set",array('uid'=>$uid,'status'=>'set message from facebook connect api'));

Update:

I change with javascript like that

location.href="http://www.facebook.com/authorize.php?api_key=<?= $appapikey ?>&v=1.0&ext_perm=status_update&next=http://www.site.com/fbconnect.php&next_cancel=http://www.site.com"


Looks like you're only prompting for the "offline_access" permission. It's telling you you need to prompt for the "status_update" permission (Updating status requires the extended permission status_update) to set status. Check the permissions here but it's likely just:

FB.Connect.showPermissionDialog("status_update,offline_access", permissionHandler);

Note that you can send more than one permission type to the dialog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜