Facebook Graph API get all users and their status

前端 未结 4 494
清歌不尽
清歌不尽 2020-12-09 12:34

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 status in one call?

I basically want the s

4条回答
  •  臣服心动
    2020-12-09 13:19

    Thanks to @mgilson for his answer, this can be combined to one FQL statement like this:

    SELECT status_id,uid,message FROM status WHERE uid IN (SELECT uid FROM user WHERE uid IN(SELECT uid2 FROM friend WHERE uid1=me()))

    The magic I found is requesting the friends_status permission which will open up from Public posts to Friends and others which help replicate the feeling of the wall.

提交回复
热议问题