facebook connect set status error

msa138

New Member
When I update status from facebook connect, following error occur\[quote\] Uncaught exception 'FacebookRestClientException' with message 'Updating status requires the extended permission status_update'\[/quote\]I also allow permission with \[code\]<script>FB.Connect.showPermissionDialog("offline_access", function(perms) { if (!perms) { //continue_without_permission(); } else { //save_session(); } });</script>\[/code\]My PHP code is\[code\]$res=$fb->api_client->call_method("facebook.status.set",array('uid'=>$uid,'status'=>'set message from facebook connect api'));\[/code\]Update:I change with javascript like that\[code\]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"\[/code\]
 
Back
Top