Is it possible to get a list of all liked objects using the Graph API? I want to save a list of any articles (ie. items with URLs) the user has liked (say, in the past week). I've tried:
/me/likes - this is liked pages only, not other items
/me/feed - this is posts by the user only, not others
/me/home - this might be possible, but seems to be deprecated
If I understand what you're trying to get correctly, you can probably use the /me/og.likes Graph API endpoint. You'll need the user_likes permission for this.
The /me/likes endpoint returns Facebook Pages that the user likes, while the /me/og.likes endpoint returns any posts/links that the user has Liked (i.e. performed an Open Graph Like action on).
Related
Is it possible to get the identities of users who have liked a page through the Facebook graph api? If so, what access permissions are required?
I have only been able to get the count via the /user edge.
That other thread got one answer that is correct:
Although you can't get a list of all the fans of a Facebook Page, you can find out whether a specific person has liked a Page.
Source: https://developers.facebook.com/docs/graph-api/common-scenarios
Is it possible to get for example the first 50 people who liked a post, photo, whatever I created on facebook via the Graph API? Is there any kind of order when accessing connections like /likes or /comments?
Use the following link (given that you have permissions to access to the post):
/likes?limit=50
This should be the first 50 likes ordered via Facebook (usually based on time).
ASFAIK, you cannot get a list of people who like a page. It's a privacy issue. If you wanted to create an app, and users authorized your app, then you could get a list of the current users friends who like the page.
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
I have a URL, for example: www.example.com
And I want to see who are the people that liked that URL, How can I retrieve that data via Facebook's Graph API?
(Currently I can Only get the liked count, but that's it)
There is no way to return such a list. You can only get the insights (e.g. demographics) and counts, but not the individual user IDs.
I'm trying to write a program that retreives a given user's "statuses" (and by statuses I mean the things he posted himself, anything he wrote as I'm mostly interested in textual statuses)
I cannot figure out the difference from the documentation here https://developers.facebook.com/docs/reference/api/user/ so I don't know which connection type to use; feed, posts or statuses
(Another thing I noticed is that statuses requires an access_token while the other 2 require the access_token only for non public stuff)
Thanks
This is documented on the User object of the Graph api. And, as of the Graph API v2.6, there is basically one main endpoint from which you get posts from a user.
/{user-id}/feed includes all the things that a user might see on their own profile feed; this includes, e.g., shared links, checkins, photos and status updates. This also includes posts made by friends on the user's profile.
The following endpoints return subsets of the above:
/{user-id}/posts returns the posts created by the user (on their own profile or the profile of a friend), and it may include any kind of content such as shared links, checkins, photos and status updates.
/{user-id}/tagged returns the posts created by friends and shared on the users's profile.
By default each returned post only includes the story field with a textual description of the post. But you can use the ?fields=... parameter to request as many Post fields as you want.
You'll need the user_posts permission for any of these to work.
The following endpoints are deprecated:
/{user-id}/statuses returns only status updates posted by the user on their own profile. [removed after Graph API v2.3]
/{user-id}/home returns a stream of all the posts created by the user and their friends, i.e. what you usually find on the “News Feed” of Facebook. [removed after Graph API v2.3]
I've found one more difference between /statuses and /posts. /statuses are just text statuses (it doesn't include shared links)
Feed - https://graph.facebook.com/me/feed - gives you the user's feed - meaning the posts he sees when he is visiting facebook (friends important posts) - notice that facebook filters only things it's algorithm marks as significant to the user and not everything.
Status - what the user posts on his own wall
Posts - what the user posts - including on other people's walls