I'm looking for a way to retrieve the equivalent of what's shown on https://www.facebook.com/me/allactivity. Both FQL & Open Graph are fine.
On the graph, /me/feed shows something similar, but it's missing likes, and tags and other things.
Any ideas are appreciated.
This is currently not possible. There is no endpoint to get to this data.
The only available data will be anything that appears as a post (e.g. Youtube, Twitter). For this you can query stream via FQL. You can also try endpoints /music.listens and /video.watches but they will retrive data for the current application not all.
Related
I am new to the API. I tried /me/likes in the graph explorer, it returns only the pages that I like (rightfully so according to the api reference). However, I'd like to get everything - namely posts, photos, statuses, etc - that I have liked.
Any insight?
I do not believe it is possible to get what you are asking for with the Graph API. A good way to see what query to use to get data is to first look at the website and mobile apps to see if they present the data you want. This is because the website and mobile apps will use the Graph API or FQL to retrieve data when it is available through those sources. So all you would need to do is go to the page that contains data that you want and then using a network traffic capture tool (like Fiddler) you can see what requests are being made to get the data.
It turns out that there is a page on the website that displays all of the objects that a User has Liked. To see this, select "Activity Log" in the drop down on the right-most side of the FB toolbar. Then select "Likes" from the left side column. This view will display the data that you are looking for. Unfortunately, to get this data the app makes a request to:
https://www.facebook.com/123456/allactivity?privacy_source=activity_log&log_filter=likes
Where "123456" is the FB UserId. What is returned is an HTML page and not JSON.
As the answer to this question has pointed out, it will take multiple Graph API AND FQL queries just to retrieve the objects that are in your Activity Log. You would then need to spin through those to determine if it is something you Liked or not.
In the Facebook Graph API I am able to retrieve the user's wall feed using the following:
/me/feed
And it returns all feeds from the user's wall, however I want to filter this, I want to get everything except likes.
I noticed that the feed type for likes is link and the stuff I need is something like status and photo.
So how do I get every feed except the ones that have the type link and how do I get every feed that has the type status?
Something like:
/me/feed?type!=link
and
/me/feed?type=status
From what I gathered, if you want to filter the data you retrieve in your own way, the way to go is to use FQL, since the Graph API is somewhat limited.
Since I'm not sure if I can do what I wanted with the Graph API, but the info I gathered lead me to believe I can't, I'm marking FQL as my answer.
my app is generating OpenGraph objects for users and I want to give those users analytics for their objects (total impressions, clicks, etc..).
I tried using the graph API to get those insights with https://graph.facebook.com/APP_ID/insights but I don't see how I can filter the results by a specific OpenGraph object.
is it possible to do what I'm looking for?
You can pull, for example, insights data for individual posts as follows:
First, get the list of posts for a page:
/<pageId>/posts
Then for each post get the insights which will look something like this:
/<pageId>_<postId>/insights
Note: It's best to batch call the post insights into one request.
I want to integrate spotify data to my application which is posted in Facebook.
I am tried that using Graph API Explorer by https://developers.facebook.com/tools/explorer?method=GET&path=me%2Fmusic.listens.
In order to get the brief information about individual music it takes too long time..
So can anyone help to continue this functionality in FQL..
Regards
Rajapandi
AFAIK you can't do this using FQL.
You need to use the Graph API and have the user_actions.music and friends_actions.music permissions.
Then you can do - graph.facebook.com/USER_ID/music.listens?access_token=
Using the graph API or FQL, is it possible to collect a list of posts an OAuthed user has liked and/or commented on?
As far as I know, there's no way to do this. The like FQL table looks promising at first but is not indexable on user_id, so it looks like you'll have to know what objects you want to check before you can do this.
Edit: Additionally, /me/likes only shows Facebook Pages and objects on Facebook.com, not for your domain or the Internet at large like I assume you're looking for.
By Open Graph, you can use og.likes. In Graph API, you can get your likes by using /me/og.likes.