django - Posting to Facebook App page wall as the App Page in python -
i trying make post on apps page wall if coming app page (not user) after researching seem find no solution works!
i have tried follow documentation here:
i 'access_token_page' getting from:
https://graph.facebook.com/oauth/access_token?client_id=app_id&client_secret=client_secret&grant_type=client_credentials then using facebook python api try:
graph1 = facebook.graphapi(access_token_page) graph1.put_wall_post(fbmessage, attachment, profile_id=app_page_id) however returns following facebook error:
*** graphapierror: (#200) user hasn't authorized application perform action any ideas on missing? remember, looking have app page make post itself, not have post generated username.
thank you!
what had done using app access token publish page.
you should using page access token post on page admin behalf instead. user access token works it's bug reported @ https://developers.facebook.com/bugs/647340981958249, it's not recommended use user access token time of writing.
as documented @ https://developers.facebook.com/docs/reference/api/page/#page_access_tokens:
page access tokens
to perform following operations page, , not current user, you must use page's access token, not user access token commonly used reading graph api objects. access token can retrieved issuing http /user_id/accounts manage_pages permission.
more info different type of access token please visit https://developers.facebook.com/docs/facebook-login/access-tokens/
Comments
Post a Comment