문제

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
도움이 되었습니까?

해결책 2

There was a genuine bug at Fb's end.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top