使用Facebook图形API如何判断用户是否在线? [英] Using the Facebook graph API how do I tell if a user is online or not?

查看:193
本文介绍了使用Facebook图形API如何判断用户是否在线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要知道Facebook用户是否在线。找不到图api调用这个?

Need to know if a Facebook user is online or not. Can't find the graph api call for this?

这是可能吗?

推荐答案

使用 online_presence 通过FQL

Use online_presence via FQL

用户的Facebook聊天状态。返回一个字符串,一个活动空闲离线 ,或错误(当Facebook无法在服务器端确定呈现信息时)。当隐私的原因限制该信息时,该查询不会返回用户的Facebook聊天状态。

The user's Facebook Chat status. Returns a string, one of active, idle, offline, or error (when Facebook can't determine presence information on the server side). The query does not return the user's Facebook Chat status when that information is restricted for privacy reasons.

这篇关于使用Facebook图形API如何判断用户是否在线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆