I keep record of all users of my app in local, MySQL database. I have all the relevant information required to get user online presence status [UID, access_token
and granted extended permission
].
How do I get online presence status of all users?
The approach I am using at the moment, is to query each user separately:
$facebook->api(array
(
'access_token' => 'x',
'method' => 'fql.query',
'query' => "SELECT uid, name, first_name, last_name, online_presence FROM user WHERE uid = x"
));
But this is time taking procedure with 150 users. I am not even talking about 400+ or 1000+.
p.s. multiquery didn't work for me, because asking user presence requires to provide the access_token
.