问题
Possible Duplicate:
Facebook online friend
I am using the Facebook Graph API and I was wondering if there was anyway to get a list of all the users and their current online-status (i.e Online or Offline) in one call?
Now i'm able to get list of users from Hash book Example, in that return JSONArray don't have any object related to this online-status.
EDIT: now i'm using this query for getting friends list query = "select name, current_location, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by name"; but i want only online friends list.
Thanks for any help!
回答1:
This might help you https://stackoverflow.com/a/5669441/1458047. When you gain these rights, you should be able to access the status over fql.
along with this it requires a FQL query--- SELECT name,uid FROM user WHERE
online_presence IN ('active', 'idle')
AND uid IN (
SELECT uid2 FROM friend WHERE uid1 = me())
来源:https://stackoverflow.com/questions/11081932/facebook-graph-api-how-to-get-facebook-online-friends-list