[英]Using the Facebook graph API how do I tell if a user is online or not?
Need to know if a Facebook user is online or not. 需要知道Facebook用户是否在线。 Can't find the graph api call for this? 找不到为此的图形API调用吗?
Is this possible? 这可能吗?
Use online_presence via FQL 通过FQL使用online_presence
The user's Facebook Chat status. 用户的Facebook聊天状态。 Returns a string, one of active
, idle
, offline
, or error (when Facebook can't determine presence information on the server side). 返回一个字符串,该字符串可以是active
, idle
, offline
或error(当Facebook无法确定服务器端的状态信息时)之一。 The query does not return the user's Facebook Chat status when that information is restricted for privacy reasons. 当出于隐私原因限制该信息时,查询不会返回用户的Facebook聊天状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.