Search code examples
facebookfacebook-graph-apifacebook-fql

How to get all user's likes using facebook's graph API


How can I query facebook's graph API to retrieve all user's likes (not only pages but also photos and others)?

For instance, how could I get all the pictures a user has liked? Using facebook's search bar you can find them easily by clicking on "photos has liked".

I wrote a script that scrapes the page content and does that but it's not very efficient.


Solution

  • There isn't to my knowledge any way to get this from the API without grabbing every type of response from the API and then sorting through for likes. Facebook search bar uses an internal API different from the Graph API.