There was a genuine bug at Fb's end.
Facebook Graph API Call - Feed is not working [closed]
-
15-06-2023 - |
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:
- Access token is valid
- Page exisits
Solution 2
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