Facebook Graph API 只返回收件箱的一页?
我尝试使用图形 API 的 https://graph.facebook.com/me/inbox?limit=0&access_token=
访问 facebook 收件箱 这会返回收件箱中最近的几条消息,而无法访问以前的消息。收件箱没有分页。另外,我找不到任何与此相关的文档。任何帮助将不胜感激。
API就是这么设计的吗?
I tried accessing the facebook inbox using the graph API's https://graph.facebook.com/me/inbox?limit=0&access_token=<extended_access_token>
This returns few recent messages of the inbox without access to previous messages. There is no paging for inbox. Also, I couldn't find any documentation related to this. Any help would be appreciated.
Is the API designed to be this way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 Until 参数对收件箱进行分页。
/me/threads?until=2011-05-01
新收件箱现在称为线程而不是收件箱。请参阅https://developers.facebook.com/docs/reference/api/thread/< /a> (是的,在 Graph API Explorer 中它是复数,而不是文档显示的单数)
Try using the until parameter for pagination of your inbox.
/me/threads?until=2011-05-01
The new inbox is now called threads rather than inbox. See https://developers.facebook.com/docs/reference/api/thread/ (yes in the Graph API Explorer it is plural rather than what the documentation shows as singular)
您可以通过在请求中添加 ?limit=Amount 来设置所需的任何限制。
例子:
You can set any limit you want by adding ?limit=Amount on the request.
Example: