Can I retrieve "unlikes" from the Facebook API? - facebook

Is there any way I can get a Facebook user's unlikes?
I can get a users likes by using /{user}/likes.
But is there any way I can see what likes the user has removed from that list? Or is there any other way to track 'unlikes'?

There's no API call you can make that will give you a list of what a user previously liked, but now does not.

Related

GET List Likes Using Graph API Explorer

I want to search the user's list of likes, to know if he liked my page or not
https://graph.facebook.com/v2.10/me/likes
I also want to know I did not follow my profile or not
https://graph.facebook.com/v2.10/me/???
There is no way to check if someone follows your profile. For getting to know if a user likes your page, you would need to authorize that user with the user_likes permission.
To check if the user likes your page without going through the whole list, you can use the following API endpoint: /me/likes/[page-id] ... if it returns something, the user liked the Page.

Facebook Graph API : find friends in a place

I use graph API Facebook to get list of a place I have been there (https://graph.facebook.com/myuserid/feed?with=location) and return place id. And I want to know my facebook friends that ever been there too by place id. Is it possible?
This is not really available in the Graph API. What is possible is to get the friends which have been tagged at a specific place_id.
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
But even there you have the restriction that
Only friends who use the requesting app will be returned.

facebook graph api if a user has liked a page

I am trying to use facebook graph api to find out if a user has liked a particular page.This is the query I tried
https://graph.facebook.com/user_id/likes/page_id?access_token="my access token"
I tried the same kind of query to find if two users are friends but its returning empty data set even for that.
https://graph.facebook.com/user_id/frineds/user_id
How should I solve that issue?
You can use
GET /v2.2/{user-id}/likes/{page-id}
to find out if a user likes a page. Remember that you need the user_likes permission!
See
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes#readmodifiers
For seeing if a user is a friend of another user, try
GET /v2.2/{user-id-a}/friends/{user-id-b}
You need the user_friends permission to do so.
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends#readmodifiers

Get all Facebook friends that like a specific page

is there an easy way to get all Facebook friends that like a specific Facebook page?
I know that there is this site here
https://www.facebook.com/browse/friended_fans_of/?page_id=245323855526590
Where you can type in the page_id and get all friends that like this. But is this also possible with the Graph API? Or would I need to go every friend of a user, using the correct permission and THEN check if the user likes a specific page? I couldn't find an API Endpoint in the API Reference of Facebook

Facebook : List of all pages liked by

I am new to Facebook's Graph API and FQL. I want small information about the same.
I want to get List of all pages liked by any particular user.
I have used Graph API just to allow user to get logged in with their Facebook ID and Can access their wall but don't know much about rest of the this.
I searched on Google for same but got information about list of pages that user administrate that I don't want, I want full list which is like by them.
It's a connection property of the User object.
https://developers.facebook.com/docs/reference/api/user/#likes