Get messages of a page from Facebook Opengraph API

▼魔方 西西 提交于 2020-01-03 05:14:12

问题


I'm trying to get the messages sent to my Facebook page via the OpenGraph API. One solution I thought of is to use the read_page_mailboxes [1] but we got rejected by Facebook when we requested for this permission, this is because we don't really have an app where users login via Facebook.

To give more context the app is just a Facebook bot what I want to do is get all the messages that have been sent to the page and then get the facebook user_id of those user.

Update

Some of the comments below says why submit it for review if login is not required. My question would be how do add the read_page_mailboxes permission without submitting for review. Right now we're doing a request to HTTP GET /<page_id>/conversations and the response we get is:

{
  "error": {
  "message": "(#279) Requires read_page_mailboxes permission to manage the    object",
  "type": "OAuthException",
  "code": 279,
  "fbtrace_id": "BHhMgQNCf4A"
 }
}

[1] https://developers.facebook.com/docs/facebook-login/permissions#reference-read_page_mailboxes

来源:https://stackoverflow.com/questions/40376558/get-messages-of-a-page-from-facebook-opengraph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!