通知响应中缺少项目
我正在尝试使用 FQL 检索所有通知的列表。我有管理通知权限。如果我进行查询,例如:
SELECT notification_id, sender_id, created_time, updated_time, is_unread, title_html, title_text, href, icon_url from notification where recipient_id = me()
它有效。但返回的列表缺少一些项目,看起来是随机的。 Facebook 网站上存在的某些通知不会出现在输出中。我无法发现任何被跳过的模式。但是,如果我使用常规图形 API 调用 /me/notifications?include_read=1 ,则会丢失完全相同的条目。
无论是从代码调用还是使用图形浏览器调用,我都会得到相同的结果。此外,如果跳过的通知未读,我可以查询未读计数并获取“1”,即使相关通知未出现在列表中。
有谁知道这里可能出了什么问题吗?
I'm trying to retrieve the list of all notifications using FQL. I have manage_notifications permission. If I do a query, like:
SELECT notification_id, sender_id, created_time, updated_time, is_unread, title_html, title_text, href, icon_url from notification where recipient_id = me()
it works. But the returned list is missing some items, seemingly at random. Some notifications that are present on the Facebook website just don't appear in the output. I can't spot any pattern in which ones are being skipped. But if I use the regular Graph API to call /me/notifications?include_read=1 exactly the same entries are missing.
I'm getting the same result whether I call from my code or using the Graph Explorer. What's more, if the skipped notification is unread, I can query the unread count and get "1", even though the notification in question does not appear in the list.
Does anyone have any idea what might be wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是一个错误,可能与时间线等的更新通知有关。您应该在 Facebook 平台错误跟踪器中提交报告 并链接回此处,让每个人都知道问题的跟踪位置。
I think this is a bug, possibly related to newer notifications from Timeline etc. You should file a report in the Facebook Platform Bug Tracker and link back here to let everyone know where the issue is being tracked.