Hello everyone I am trying to get my friends 's likes on FB using FQL
'SELECT name,type FROM page WHERE page_id IN (SELECT target_id FROM connection WHERE source_id=%i and target_type="Page") AND type!="APPLICATION"'%(friend.fb_uid))
The query works as expected when I am asking for my own likes but return nothing for my friends. I have added the likes permission but still nothing.
Any ideas?
The page_fan table here http://developers.facebook.com/docs/reference/fql/page_fan might work for your use case (I'm going to check why the connections table has different behaviour). Try something like:
'SELECT name, type FROM page WHERE page_id IN (SELECT page_id FROM page_fan WHERE uid=%i) AND type != "APPLICATION"'%(friend.fb_uid)
This is of course after asking for the friends_likes permission.
The user has to grant your application the user_likes
permission before you can do that.
And if you're going to do while the user is not logged in, you'll need to prompt them for the offline_access
permission as well.
http://developers.facebook.com/docs/authentication/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With