Question

I am trying to make a graph api call to post status update to a fan pages.

I am using http post here my base url: https://graph.facebook.com/{page_id}/feed

message=hi&access_token={access_token}

I am however getting an error

{"error":{"message":"An unexpected error has occurred. Please retry your request later.","type":"OAuthException","code":2}}

Could you tell me if I am missing anything?

Things I checked:

  1. Access token is valid
  2. Page exisits
Was it helpful?

Solution 2

There was a genuine bug at Fb's end.

OTHER TIPS

You need the extended permission manage_pages for your app (or through graph explorer) to be able to publish to the page feed. Once you have a new access_token with that permission, this should work:

curl \
  -F "message=hi" \
  "https://graph.facebook.com/<page_id>/feed"

Or whatever method you prefer.

Edit: You may also need the page access token, as described in the Publish page API

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top