When I update status from facebook connect, following error occur
Uncaught exception 'FacebookRestClientException' with message 'Updating status requires 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"