Facebook Graph API 只返回收件箱的一页?

发布于 2024-12-27 10:04:50 字数 243 浏览 5 评论 0原文

我尝试使用图形 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缱绻入梦 2025-01-03 10:04:50

尝试使用 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)

千仐 2025-01-03 10:04:50

您可以通过在请求中添加 ?limit=Amount 来设置所需的任何限制。

例子:

FB.api('/me/threads/?limit=50', function(response){ 
   console.log(response);
});

You can set any limit you want by adding ?limit=Amount on the request.

Example:

FB.api('/me/threads/?limit=50', function(response){ 
   console.log(response);
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文