【问题标题】:Can't get more than 50 messages through Graph API无法通过 Graph API 获取超过 50 条消息
【发布时间】:2012-02-28 01:00:32
【问题描述】:

跑步

FB.api('/me/inbox', {limit:800}, function(response){ console.log(response)});

日志

data: Array[50]
summary: Object

到控制台,显然只有 50 条消息。将限制设置为较低的值,例如 51,会产生相同的结果。

如何解决?

我已经查看了分页 (http://stackoverflow.com/questions/5023757/how-does-paging-in-facebook-javascript-api-works) ,但看起来,当我运行这个请求。

【问题讨论】:

标签: facebook-graph-api facebook-javascript-sdk messages inbox


【解决方案1】:

尝试使用 until 参数对收件箱进行分页。

/me/threads?until=2011-05-01

新收件箱现在称为threads,而不是收件箱。请参阅https://developers.facebook.com/docs/reference/api/thread/(是的,在 Graph API Explorer 中它是复数,而不是文档显示的单数)

【讨论】:

  • 我想知道 facebook 什么时候会发布这个 - 线程仍处于“仅限开发人员”模式,我已经等了一年多...
猜你喜欢
  • 2019-08-04
  • 2020-06-12
  • 2021-05-22
  • 1970-01-01
  • 2018-01-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多