tags:

views:

419

answers:

1

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.

+2  A: 

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.

Pierre-Antoine LaFayette
Thanks, but that doesn't answer my question. I want it *all* ;-)
ohnoes
I've updated the answer to be more specific to your request.
Pierre-Antoine LaFayette
SELECT post_id, likes FROM stream WHERE source_id = [userid] and likes.user_likes = 1
stimpy77