Facebook 图 API 标记为垃圾邮件并过滤对话
Facebook graph API mark as spam and filter conversation
在我的 Messenger 应用程序中,我需要阻止垃圾邮件,并在调用对话列表时过滤掉。图 API 这可能吗?如何过滤掉标记为垃圾邮件的邮件?
`https://graph.facebook.com/${version}/${PAGE_ID}/conversations?${queryParam}`
您只能从特定文件夹中请求对话,https://developers.facebook.com/docs/graph-api/reference/conversation/#folders
Folder.
Description
inbox
Messages in your inbox
other
page_done
Messages marked as Done that are no longer in your Page's main inbox. These messages are no longer visible in your inbox.
pending
Messages in your pending folder
spam.
Messages marked as Spam. These messages are no longer visible in your inbox but have not been deleted.
您可以在对话边缘后指定文件夹名称,即
https://graph.facebook.com/${version}/${PAGE_ID}/conversations/inbox
我不知道您是否可以一次指定多个文件夹,如果您需要来自多个文件夹的消息。像 /conversations/other,inbox
这样的组合似乎仍然可以给出结果,但我现在没有足够的数据来验证它是否正确。
在我的 Messenger 应用程序中,我需要阻止垃圾邮件,并在调用对话列表时过滤掉。图 API 这可能吗?如何过滤掉标记为垃圾邮件的邮件?
`https://graph.facebook.com/${version}/${PAGE_ID}/conversations?${queryParam}`
您只能从特定文件夹中请求对话,https://developers.facebook.com/docs/graph-api/reference/conversation/#folders
Folder. | Description |
---|---|
inbox | Messages in your inbox |
other | |
page_done | Messages marked as Done that are no longer in your Page's main inbox. These messages are no longer visible in your inbox. |
pending | Messages in your pending folder |
spam. | Messages marked as Spam. These messages are no longer visible in your inbox but have not been deleted. |
您可以在对话边缘后指定文件夹名称,即
https://graph.facebook.com/${version}/${PAGE_ID}/conversations/inbox
我不知道您是否可以一次指定多个文件夹,如果您需要来自多个文件夹的消息。像 /conversations/other,inbox
这样的组合似乎仍然可以给出结果,但我现在没有足够的数据来验证它是否正确。