Facebook API - 获取收件箱消息数
Facebook API - Get inbox messages count
我的 Facebook 应用程序应该向我显示与我有最多收件箱消息的朋友。我得到了所有收件箱线程,我可以在线程中获取每条消息,但应用程序使用许多 API 调用,因此它可能会收到 'Too Many Calls' 错误。有没有办法只获取线程对象中的消息计数?
请不要推荐 FQL,因为它在当前 Facebook API 版本 (v2.2) 中已弃用
我认为不可能获得收件箱消息的计数,您可以尝试包含一个限制参数以在一次调用中获得更多评论。但要点是你需要 read_mailbox
许可,你很可能不会获得批准:
This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission.
来源:https://developers.facebook.com/docs/facebook-login/permissions/v2.2#reference-read_mailbox
我的 Facebook 应用程序应该向我显示与我有最多收件箱消息的朋友。我得到了所有收件箱线程,我可以在线程中获取每条消息,但应用程序使用许多 API 调用,因此它可能会收到 'Too Many Calls' 错误。有没有办法只获取线程对象中的消息计数?
请不要推荐 FQL,因为它在当前 Facebook API 版本 (v2.2) 中已弃用
我认为不可能获得收件箱消息的计数,您可以尝试包含一个限制参数以在一次调用中获得更多评论。但要点是你需要 read_mailbox
许可,你很可能不会获得批准:
This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission.
来源:https://developers.facebook.com/docs/facebook-login/permissions/v2.2#reference-read_mailbox