6

I would like to post updates to a Facebook Page I own, using the API.

I followed the instructions in this answer to obtain:

  1. a short-lived access token for my user, making sure to grant permissions for publish_stream and manage_pages
  2. a long-lived access token, which the token debugger actually shows as never expiring
  3. a Permanent Page Access Token specific for my page, which again is shown as never expiring

I can use the long-lived access token to post to my wall, but neither that nor the specific page access token allow me to post to my page.

If I try to use the personal long-lived access token to post to my Page ID, it returns OK and an actual post ID, but the post never appears on the page.

If I try to use the page access token to post either to /me/feed (which should be the page) or to the page ID, I get #200 The user hasn't authorized the application to perform this action which I clearly did.

What am I doing wrong?

Do I need to submit my app for review? How can I do so, when I don't even have an "app"? It has no public facing website, nothing, because it's only a single script for my own personal use, which I'd like to use to update my page.

Community
  • 1
  • 1
Tobia
  • 14,998
  • 3
  • 64
  • 78

1 Answers1

5

according to the docs you will need publish_pages permission to post as page from api v2.3 . Prior, it needed permission publish_actions in addition to manage_pages. Now they have introduced publish_pages specifically for that purpose. .

A page access token with publish_pages permission can be used to publish new posts on behalf of that page. Posts will appear in the voice of the page.

Sojan Jose
  • 3,054
  • 6
  • 30
  • 45
  • Thank you. That was it. It still gives me a warning box when I grant the permission, saying *"Your app may break after 30 April 2015"* (**may** or **will**?) and *"Some of the permissions below have not been approved for use by Facebook."* So do I still need to submit my script for review? Are there any guidelines for self-developed scripts, which are not actual apps? – Tobia Apr 20 '15 at 17:01
  • @Tobia facebook approval is meant for general public . The app owner , developers and test accounts won't be affected. – Sojan Jose Apr 20 '15 at 17:05
  • That's what I hope. My FB account owns both the app and the Page, so let's hope they don't block my app updating my own page. – Tobia Apr 20 '15 at 17:17
  • 1
    _“Prior this permission was automatically granted when obtaining page access token”_ – no; before v2.3, it needed permission `publish_actions` in addition to `manage_pages`. Now they have introduced `publish_pages` specifically for that purpose. – CBroe Apr 21 '15 at 10:49
  • @Toby so, did you need permission approval for posting to your own page? – Hendy Irawan Nov 20 '17 at 18:45
  • @Tobia I would also appreciate if you could let HendyIrawan and I know if permission approval was required to post to your own page. Cheers – Kareem Jul 03 '18 at 03:05