I want to Get list of users online without Facebook SDK.My fql Query is as below
$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
)";
And my graph URl is
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
But Above Url returning null data.
{
"data": [
]
}
Note: my token have friends_online_presence permission .I have 40 users online.