Check if user like the facebook post or not with graph API

962 Views Asked by At

I'm not getting any leads how to check whether user has like the feed or not. I'm displaying all the feeds of my page and I want to know whether user has liked the feed or not. One solution is get all the likes and search for our id, that is not a good approach.

Tried this way, but it's not working

1

There are 1 best solutions below

6
andyrandy On

/me/likes is for getting the liked Facebook Pages only, and you need the user_likes permission for that. Afaik there is no way to check if a user likes a specific post, you could only access the post with the API and go through the likes (/post-id) - but you would not be able to match the IDs to the authorized user (global !== app scoped id).