Error 200 - Requires specific permission (Graph API)

5,514 views
Skip to first unread message

tled...@ensc.fr

unread,
Aug 28, 2018, 5:39:26 AM8/28/18
to PythonForFacebook
Hi,

I'm in the Graph API and I want to test first my script with a page test.
I want to post a message on my test page.
I'm using the app token, the test user access token and the page id correctly.

Facebook is asking me to have specific permission.
Are they asking me review my App ? I normally don't needed it if I have the status : "In Development", right ?

This is error I get after running : 

`
import facebook
graph = facebook.GraphAPI(access_token=user_access_token)
graph.put_object(parent_object=page_id, connection_name='feed',
 message='Hello, world from MBP')
`

Error :

`facebook.GraphAPIError: (#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`

Thank you for your time,

Thomak

jo...@philiasoft.com

unread,
Aug 30, 2018, 11:39:48 AM8/30/18
to PythonForFacebook
I'm having troubles with this too. Seems like a catch22 - you need to show how the permission will be used in a real app, but you need the permission to implement the functionality.

We are in development mode, and even tried with the test user they gave us. Same issue. No response?

Martey Dodoo

unread,
Aug 30, 2018, 4:42:14 PM8/30/18
to pythonfo...@googlegroups.com
`facebook.GraphAPIError: (#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`

This error message is almost certainly related to the specific user access token that you passed to Facebook. You should use the Access Token Debugger to confirm that your access token has at least one of the permissions mentioned in the error message, and that your app is either installed in the Page or that the test user associated with the access token is a Page admin.
--
You received this message because you are subscribed to the Google Groups "PythonForFacebook" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonforfaceb...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Martey Dodoo
Principal Developer, Mobolic
Message has been deleted

tled...@ensc.fr

unread,
Sep 1, 2018, 5:00:45 AM9/1/18
to PythonForFacebook
Hi,

I made a document after discovering and fixing the issue #200 : it seems you don't have the right access to publish on the page.
You need to create a test user, give him all the access needed and get the access token related.

The attached file may help you going through all the steps.

Admin, feel free to put it in your repo (I can also give you (if needed) a format so that you can modify it later)

Hope it will works for you.
how to Use Facebook Graph API - tleduc .pdf

sow...@ezeees.com

unread,
Oct 9, 2018, 5:01:31 AM10/9/18
to PythonForFacebook

ppp.png

hii,,i have been trying to  use graph api..iam getting the same error.I  dont know what is the issue .please let me know. I have attached screenshot of roles page

Gianluca Trentin

unread,
Apr 23, 2019, 8:17:44 PM4/23/19
to PythonForFacebook
you are THE man. Thanks a lot
Reply all
Reply to author
Forward
0 new messages