Facebook 当前通知计数
我发现很难找到有关如何检索当前会话用户的所有当前未读通知计数的任何信息。理想情况下,我只想通过 php 将所有未读通知的数字返回到 html。我想做的是每分钟左右收集一次通知,如果有新通知,我希望收到提醒并更新状态。我已经通过 getNotifications 的数组尝试过此操作,但没有成功。是否可以计算当前未读通知的数量?基本上我问当前的智能手机如何获取计数并在有新通知等时提醒用户。
非常感谢任何帮助,
谢谢
I am finding it very difficult to find any information on how to retrieve the count of all currently unread notifications of the current session user. Ideally i would just like to return a number via php to html of all unread notifications. What i would like to do is pool for notifications every minite or so and if there is a new one i would like to be alerted and the status updated. I have tried this via the array from getNotifications but no luck. Is counting the current unread notifications even possible ?????. Basically i am asking how current smartphones are getting the count and alerting users to when there is a new notification etc.
Any help is greatly appreciated
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否检查过:http://developers.facebook.com/docs/reference/fql /通知/?
我想你可以每分钟检查一次用户的未读通知,将它们记录在数据库中,如果出现新的通知(即在上一个请求中不存在),则更新用户的状态
Did you check that : http://developers.facebook.com/docs/reference/fql/notification/ ?
I guess you can check every minute the unread notification of a user, record them in the database, and if a new one appear (ie wasn't present in the previous request), you update the status of the user