Facebook Graph API - How do I get everything I like?


Alain

I am new to API. I tried /me/likes in the graph explorer and it only returns the pages I like (correctly according to the api reference). However, I want to get everything I like, including posts, photos, status, etc.

Any insight?

Matthew in Critical Cognition

I think using Graph API will do what you want. A good way to look at the queries used to get the data is to first look at websites and mobile apps to see if they provide the data you want. This is because websites and mobile applications will use the Graph API or FQL to retrieve the data available through these sources. So all you need to do is go to the page with the data you want, and use a network traffic capture tool such as Fiddler to see the requests that are getting the data.

It turns out that there is a page on the website that displays all the objects that users like. To view this information, select "Activity Log" in the drop-down menu at the far right of the FB toolbar. Then select "Likes" from the left column. This view will display the data you are looking for. Unfortunately, in order to obtain this data, the application requires:

https://www.facebook.com/123456/allactivity?privacy_source=activity_log&log_filter=likes

where "123456" is the FB user ID. Returns an HTML page, not JSON.

As the answer to this question points out, multiple Graph API and FQL queries will be required to retrieve objects in the activity log. Then you need to skim through the content to see if it's something you like.

Related


How do I get GoLand to build everything?

Pete: Is there an equivalent go build ./...in GoLand so I can see all errors in the IDE at a glance? I've modified some widely used structures and I'd like to find everything that needs to be changed. I've tried a package build at the top of the tree, but it "

How do I get GoLand to build everything?

Pete: Is there an equivalent go build ./...in GoLand so I can see all errors in the IDE at a glance? I've modified some widely used structures and I'd like to find everything that needs to be changed. I've tried a package build at the top of the tree, but it "

How do I get GoLand to build everything?

Pete: Is there an equivalent go build ./...in GoLand so I can see all errors in the IDE at a glance? I've modified some widely used structures and I'd like to find everything that needs to be changed. I've tried a package build at the top of the tree, but it "

How do I get GoLand to build everything?

Pete: Is there an equivalent go build ./...in GoLand so I can see all errors in the IDE at a glance? I've modified some widely used structures and I'd like to find everything that needs to be changed. I've tried a package build at the top of the tree, but it "

JSONObject is null even if I get data from facebook graph api

Yusuf Abdullaev I am developing facebook application and getting data from facebook graph api. In AlbumsActivity I'm executing AsyncTask, where in loan I call getJSONString method which should execute Facebook api's GraphRequest and return jsonObject from its

JSONObject is null even if I get data from facebook graph api

Yusuf Abdullaev I am developing facebook application and getting data from facebook graph api. In AlbumsActivity I'm executing AsyncTask, where in loan I call getJSONString method which should execute Facebook api's GraphRequest and return jsonObject from its

How can I get similar status in Facebook graph API v2

Ichiro Kaino I got the object_id in the following process. /v2.2/me/home?fields=id, attachment object_id is return ["id"] or ["attachment"]["data"][0]["target"]["id"] I get like_count for the following request. /v2.2/{object_id}/likes?summary=true like_count i

How can I get similar status in Facebook graph API v2

Ichiro Kaino I got the object_id in the following process. /v2.2/me/home?fields=id, attachment object_id is return ["id"] or ["attachment"]["data"][0]["target"]["id"] I get like_count for the following request. /v2.2/{object_id}/likes?summary=true like_count i

How do I get my Prometheus graph?

Life I have installed the python prometheus client (prometheus-client==0.0.18) and added several metrics to my application. I am importing and running prometheus client from prometheus_client import ... start_http_server(8100) I can see my metrics at http://{m