如何检测好友是否在线?
我想创建一个桌面应用程序,每当特定朋友上线时它都会通知我。我的想法是使用聊天 API,但发现它不支持“状态探测”,我想这正是我所需要的。还有其他人这样做吗?
I want to create a desktop application that notifies me whenever a specific friend comes online. My idea was to use the chat API, but found out that it doesn't support "presence probes," which I suppose are what I need. Any other to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好的选择是使用 FQL 用户的
online_presence
字段表。要访问此信息,您需要用户向您的应用程序授予
friends_online_presence
权限。Your best bet is to use the
online_presence
field of the FQL user table.To access this information you will need user to grant
friends_online_presence
permission to your application.