Is this possible to get all my friends likes?? Now, I'm getting this by 2 steps:
- Getting all my friends list
- By iterating those list I'm getting all individuals Likes,
but it seems very big process, anybody have idea to improve the performance for this task?
At last I found it after 2 weeks looking at Facebook API documentation
Using
FQL
is going to be faster than looping through the Graph API results. You can get the ID of the pages your friends like, but unfortunatelyFQL
does not return info other than that (ie the name). Take a look at the following.This assumes you are using the PHP SDK with the friends_likes permission.
The benefit of this is that you only make one API call. You will have to make separate calls to get the friend names and another for the liked page details, but you have the IDs to work with now in a straight forward approach.
I believe that is the only way. I looked at this problem a few weeks ago. Don't think they've changed the API.
http://developers.facebook.com/docs/reference/api/
EDIT: I'm not sure I understand well enough what you mean... If you mean that you want to get a list of the posts that a user likes, what you have to do is this:
Is that what you want?