Take the 2-minute tour ×

my app's extended permissions are not working, everytime I try to post to wall, I get this error (#200) The user hasn't authorized the application to perform this action, even though I have added in the right permissions, here is my code,


$facebook = new Facebook(array(
  'appId'  => '1234456789',
  'secret' => 'secret'

$user = $facebook->getUser();

if ($user) {

    $logoutUrl = $facebook->getLogoutUrl(array(

} else {

$loginUrl = $facebook->getLoginUrl(array(
        'cancel_url' =>'http://apps.facebook.com/my_app/'

    echo "<script>top.window.location='".$loginUrl."';</script>";


any idea why the permissions are not being set? Or why this is happening?

Thanx in advance!

share|improve this question
I could not understand your requirement. Do you want to use this in your web site or facebook itself. I see the URLs are facebook links not your domains. –  AjayR Jun 7 '11 at 3:01
Facebook itself, apologies if I was unclear about that. –  Odyss3us Jun 7 '11 at 4:20
What request are you trying to make that fails? –  bkaid Jun 9 '11 at 19:43

1 Answer 1

Without the specific code that fails it's hard to help you. But... according to FB's privacy settings, a user can choose which details to make available to applications:

From facebook:

Choose Your Privacy Settings>Apps, Games and Websites> "Control what information is available to apps and websites when your friends use them."

It's possible that some user's have denied specific permissions and that's why it's returning an error. See http://developers.facebook.com/docs/reference/fql/permissions/ to check granted permissions by uid.

But do show us the code :)

share|improve this answer

Your Answer


