我正在尝试在我的应用程序页面墙上发布帖子,就好像它来自应用程序页面(而不是其他用户)经过研究后,我似乎没有找到真正有效的解决方案!
我试图按照这里的文档:
然后我通过以下方式获取我的“access_token_page”:
https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=CLIENT_SECRET&grant_type=client_credentials
然后使用 facebook python api 我尝试:
graph1 = facebook.GraphAPI(access_token_page)
graph1.put_wall_post(fbmessage, attachment, profile_id=APP_PAGE_ID)
但是,这只会返回以下 facebook 错误:
*** GraphAPIError: (#200) The user hasn't authorized the application to perform this action
关于我所缺少的任何想法?请记住,我希望让应用页面自己发布帖子,而不是从另一个用户名生成帖子。
谢谢!