我想在没有 Facebook SDK 的情况下在线获取用户列表。我的 fql 查询如下
$fql = "SELECT uid, name, pic_square, online_presence
FROM user
WHERE online_presence IN ('active', 'idle')
AND uid IN (
SELECT uid2 FROM friend WHERE uid1 = $user
)";
我的图表 URl 是
https://graph.facebook.com/fql?q=SELECT uid, name, pic_square, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = 1234)&access_token=xxxxxxtokenxxxxx&method=GET
但在 URL 上方返回空数据。
{
"data": [
]
}
注意:我的令牌有 friends_online_presence 权限。我有 40 个在线用户。