Facebook API - “All my likes” query

后端 未结 3 748
耶瑟儿~
耶瑟儿~ 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:00

    I was trying to find out the videos (Youtube and Howcast) that either I liked or posted or shared. Here is the FQL, see if it can be useful to someone:

    fql?q=SELECT post_id, actor_id, target_id, message, attachment, permalink, likes
          FROM stream
          WHERE filter_key in ('other', 'owner')
            AND is_hidden = 0 AND (attachment.caption = 'www.youtube.com'
            oR attachment.caption = 'www.howcast.com' )
    
    0 讨论(0)
  • 2021-02-09 02:06

    The Graph API makes this easy now:

    https://graph.facebook.com/[fbid]/likes

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题