facebook-graph-apifacebook-javascript-sdk

Schedule post on a page results in OAuthException: "(#200) Unpublished posts must be posted to a page as the page itself"


I would like to schedule a post on a Facebook page: https://graph.facebook.com/898816883506941/feed?message=test&published=false&scheduled_publish_time=475222121&access_token=

I got this error:

{
  "error": {
    "message": "(#200) Unpublished posts must be posted to a page as the page itself.",
    "type": "OAuthException",
    "code": 200,
    "fbtrace_id": "BD2bScn5NxI"
  }
}

Solution

  • You have to use a Page Token of the Page, with the publish_pages permission.

    More information about Tokens: