Facebook在线朋友 [英] Facebook online friend
问题描述
ive尝试在这里找到一些解决方案,以获取我的在线朋友列表:
ive tryed some solution found here to get a list of my friend online:
如何使用Facebook API使用FQL获取在线朋友列表? / a>
How to get list of online friends using FQL with facebook API?
这是我的fql查询:
$fql = "SELECT uid, name, online_presence, status FROM user WHERE uid IN
( SELECT uid2 FROM friend WHERE uid1 = '".$me['id']."')";
但是99%的朋友的现场字段是空的。我得到的存在(活跃,空闲,离线),只有6/7的朋友。状态栏位相同。
But the presence field is empty for 99% of my friends. I get the presence (active, idle, offline), only for 6/7 friends. the same for the status field.
我如何获得完整的状态和状态数据?我失踪了我需要为我的应用程序请求一个特定的许可(目前我只有基本的)。
How i can get the complete presence and status data? What i'm missing? I need to request a particular permission for my app (currently i have only the basic).
非常感谢。
编辑:@ Roozbeh15解决方案是答案,但我需要fid为什么结果是不是相同数量的用户i hvae在聊天。 fql用户计数始终为<比用户在fb聊天。你知道为什么吗?
The @Roozbeh15 solution is the answer, but i need to fid why the result isn't the same number of user i hvae in chat. The fql user count is always < than the user in fb chat. Do you know why?
推荐答案
你需要 user_status
用户的状态和 user_online_presence
和/或 friends_online_presence
online_presence
。
You need the user_status
permission to read the user's status and user_online_presence
and/or friends_online_presence
permissions for the online_presence
.
这里是完整权限列表。
这篇关于Facebook在线朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!