Facebook Graph API, how to get facebook online friends list? [duplicate]

末鹿安然 提交于 2019-12-08 11:42:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!