Facebook API - “All my likes” query

后端 未结 3 741
耶瑟儿~
耶瑟儿~ 2021-02-09 01:42

Is it possible to retrieve all the posts, user ever \'liked\'?

FQL? API? I could not find a way. FB gurus out there, your help would be appreciated.

3条回答
  •  醉梦人生
    2021-02-09 02:09

    Use the Stream.get API call.

    If you specify only one user ID in the source_ids array, you can return the last 50 posts from that user's profile stream (Mini-Feed) for the last 180 days. If you specify more than one user ID in the source_ids array, you can return posts in those streams only from the last 9 days.

    You can make FQL calls to retrieve likes from the stream table:

    SELECT likes FROM stream WHERE source_id = [user_id] 

    This will return the user's likes for the last 180 days.

提交回复
热议问题