0

Trying to post to a fan page, I get this:

{"error":{"type":"OAuthException","message":"A user access token is required to request this resource."}}

while trying to post to [album id]/photos

The weird thing is that I can't find anything on this specific error.

I'll add details if needed.

ymajoros
  • 2,454
  • 3
  • 34
  • 60
  • give more details.Hope you added access token to the request – KaKa Jul 24 '11 at 10:08
  • well, I created an app, gave it permissions and requested a token, which I add to the requests (I'm using RestFB) – ymajoros Jul 24 '11 at 16:00
  • see: http://stackoverflow.com/questions/4121535/an-access-token-is-required-to-request-this-resource-while-accessing-an-album/14127511#14127511 – Ujjwal Singh Jan 02 '13 at 18:54

1 Answers1

1

If you want to post to any of your fan pages, you need to grant manage_pages and publish_stream permissions to your application and then fetch your page access_token to post, here's a link which has examples and explains how to: http://www.masteringapi.com/tutorials/how-to-post-on-facebook-page-as-page-not-as-admin-user-using-php-sdk/31/

Syed I.R.
  • 6,180
  • 2
  • 29
  • 41