title: Can't get the Facebook publish_action permission on iOS
body: <p>I've spent hours on this and can't get it to work. Basically I just want a button in my app that will 'Like' itself on Facebook.
  I've created the app on dev Facebook and have an associated App Page.
  In my code I request these permissions:</p>
  
  <pre><code>_permissions =  [NSArray arrayWithObjects:@"publish_stream", @"publish_actions", @"user_birthday", nil];
  </code></pre>
  
  <p>I can retrieve a profile picture fine, but when I try to 'Like' using this code:</p>
  
  <pre><code>NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                         _facebook.accessToken, @"access_token",
                                         nil];
          [_facebook requestWithGraphPath:@"329756493773381/og.likes" andParams:params andHttpMethod:@"POST" andDelegate:self];
  </code></pre>
  
  <p>I get this error response:</p>
  
  <pre><code>(facebookErrDomain error 10000.)" UserInfo=0x20090590 {error={
      code = 200;
      message = "(#200) Requires extended permission: publish_actions";
      type = OAuthException;
  }}
  </code></pre>
  
  <p>When logging in on the app, Facebook asks me for permission to see my birthday, and tell's me it will Post on my behalf but it seems to not get the publish_actions permission.</p>
  
  <p>Is there something i'm missing that I need to do?</p>
  
  <p>I see Temple Run has a Facebook Like button and offers bonus coins for pressing it. This is what I wish to achieve.</p>
  
  <p>EDIT -------</p>
  
  <p>I've changed my permissions to just @"publish_actions", @"user_birthday" and now the auth dialogue says</p>
  
  <blockquote>
    <p>"This app may post on your behalf, including objects you liked and
    more"</p>
  </blockquote>
  
  <p>which seems to be the publish_actions permission, however I was still getting the error</p>
  
  <blockquote>
    <p>message = "(#200) Requires extended permission: publish_actions";</p>
  </blockquote>
  
  <p>I've changed this line:</p>
  
  <pre><code>[_facebook requestWithGraphPath:@"329756493773381/og.likes" andParams:params andHttpMethod:@"POST" andDelegate:selrf];
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>[_facebook requestWithGraphPath:@"329756493773381/og.likes" andDelegate:self];
  </code></pre>
  
  <p>and I do now get a response back, although it doesn't post a 'like'</p>
  
  <p>This is the result response:</p>
  
  <pre><code>{
      data =     (
      );
      paging =     {
          next = "https://graph.facebook.com/329756493773381/og.likes?sdk=ios&amp;sdk_version=2&amp;access_token=BAAGeAp3ZBGwoBAPICjlgB5zK0YECyP8yElf8hJoMrx8Qs4vjeZAK5PlXFAVbGM1JyXHE0wZBvU0aBeCzCUTZBejQgoJ44CAIQsrG64TfrHdxjMqWD&amp;format=json&amp;offset=25&amp;limit=25";
      };
  }
  </code></pre>
  
  <p>Any idea what to try next?</p>
  
  <p>EDIT 2 ---------------
  I'm making progress with this.
  I've added the users id to the graph request like this</p>
  
  <pre><code>NSString *graphPath = [NSString stringWithFormat:@"%@/og.likes",facebookID];
  </code></pre>
  
  <p>and used these parameters</p>
  
  <pre><code>NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                         @"AAAGeAp3ZBGwoBABvKjsPZAoQQNG9cDPJI2v2TI8acyyPSNtm9ZBkfydHqVZAjSKWSbLuvFwxyxSrCts7kFZCnh7Y6f5PFNlWb6smF8XF33wlRZBgfLyhT1", @"access_token",
                                         @"http://samples.ogp.me/329756493773381", @"object",
                                         nil];
  </code></pre>
  
  <p>and now I get a like showing up on my timeline :-)
  I was using the access-token supplied by the Facebook login, but it seems the one supplied by the graph object is different.</p>
  
  <p>Now, the like that i'm seeing has this pattern:</p>
  
  <blockquote>
    <p>Darren likes object on MyAPP</p>
  </blockquote>
  
  <p>Is it even possible to have it as</p>
  
  <blockquote>
    <p>Darren likes MyAPP
    with it linking to the app Facebook page?</p>
  </blockquote>
  
  <p>Thanks</p>