开发者

How to get category specific likes for a facebook user using graph API

I'm pretty new at this. I was playing with the Facebook Graph API and was able to pull all my LIKES using the call

$all_likes = json_decode(file_get_contents('https://graph.facebook.com/me/likes?access_token='.[access_token]));

Now when I display these, they have a field called category which has different values like TV Show, Book, Public Figure etc.

So my question is how do I get category specific likes - for instance I just want to fetch ALL the BOOKS that I LIKE

Obviously its possible to fetch all the likes and store them on the server side and work on it but the LIKES list is too huge for certain users and it doesn't make sense to pull everything if you just want to show a certain category.

开发者_如何转开发

I feel like I'm missing something. If its not possible through the graph API call, then even a FQL solution is welcome. Thanks for your time

R


You can use FQL, just like in this answer:

SELECT page_id FROM page_fan WHERE uid=me() AND type="MOVIE"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜