Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph API error #200 even with correct permissions

I'm setting up a bot to auto-post on a facebook page. But when i run the script, the graph API throws the following error:

Graph returned an error: (#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission

but in the app's permissions, both manage_pages and publish_pages are marked as allowed, as well as the user (who is also the owner of the page) is setup as app admin.

i know this is (or, at least, was) a know issue but i've found no answer whatsoever.

is there any way to solve/work arround it?

like image 379
Lucca Bibar Avatar asked Jan 17 '19 19:01

Lucca Bibar


People also ask

Is graph API deprecated?

Azure Active Directory (Azure AD) Graph is deprecated and will be retired at any time after June 30, 2023, without advance notice, as we announced in September, 2022.

What does graph API mean?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.


1 Answers

  • Make sure you actually authorize the User with those permissions, debug the Token in the debugger: https://developers.facebook.com/tools/debug/accesstoken/
  • Use a Page Token of that Page, not a User Token: https://stackoverflow.com/a/32924419/7335057
like image 190
andyrandy Avatar answered Oct 19 '22 05:10

andyrandy