Get full Facebook data - facebook

Can I use Facebook Graph API to download my full Facebook data? I've tried Graph API Explorer and I can only see all of them, but independently. Is it possible to get all the data in just one request or one json structure? and is it possible to include all of my friends data too?
My friend did show me a json file that contains such data and it's quite a big file(480Mb uncompressed, 48Mb compressed). Apparently, I can't contact her now for more details. Is it possible to this? If I can't, can I assume that she downloaded her data long before Facebook changed their privacy agreement?

you can also use netvizz an app in facebook itself.It gives you the whole network in .gdf format .
Then you can analyze it in gephi(its just another way around

Related

Is there any API for fetching metadata of article using Facebook Open Graph Object Debugger?

I want to fetch metadata of any web-page using Facebook Open Graph Object Debugger.
We can get it from this URL: Open Graph Object Debugger
Example: Open Graph Object Debugger for Google
It will provide all the information related to that URL. Is there any way to get this information using API(in JSON format)?
Yes, via the API URL Object described here and in even more detail here. Note that you can issue a POST request to this URL to force a refresh. You can even get additional data such as how many times that link was shared on Facebook!
https://graph.facebook.com/v2.10/?fields=og_object&id=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt2015381%2F&access_token={YOUR_TOKEN}
I did experience inconsistencies, namely if the obejct does not exist the API will return nothing but if you query it a few seconds later it will be there. For this reason we could not rely on Facebook and simply fetched the page ourselves and parsed out the og:* tags.
It may be perfect if you don't care about misses and having to re-fetch or if you just want to programmatically clear the Facebook OG cache.
It's wise to post to it every time you create a new page to force the cache or sometimes the first person to paste the URL into Facebook won't get the link preview!
Yes you can use this https://urlmeta.org
Its usage is pretty simple. Just make a GET call and pass the URL to API endpoint: https://api.urlmeta.org and you are done.

How to get all user's likes using facebook's graph API

How can I query facebook's graph API to retrieve all user's likes (not only pages but also photos and others)?
For instance, how could I get all the pictures a user has liked? Using facebook's search bar you can find them easily by clicking on "photos has liked".
I wrote a script that scrapes the page content and does that but it's not very efficient.
I have recently come accross a similar problem, maybe this helps you solve it.
https://graph.facebook.com/v2.5/{page_id}/feed?fields=likes.limit(1).summary(true)&since={start_date}&until={end_date}&access_token={access_token}
This will give you a list of all posts that received likes during the specified time period. If you manage to write a code summing up the following JSON path you got your sum for "all user's likes":
data[0].likes.summary.total_count
Not entirely sure is this is exactly what you were searching for, hope it helps you though - and if not you, someone else.
As for likes you can also use the same way to extract Shares and Comments:
Shares
https://graph.facebook.com/v2.5/{page_id}/feed?fields=shares&since={start_date}&until={end_date}&access_token=
Comments
https://graph.facebook.com/v2.5/{page_id}/feed?fields=comments.limit(1).summary(true)&since={start_date}&until={end_date}&access_token=
Best regards
There isn't to my knowledge any way to get this from the API without grabbing every type of response from the API and then sorting through for likes. Facebook search bar uses an internal API different from the Graph API.

How to identify photos that were downloaded from Facebook

Is there any kind of metadata in photos that Facebook processes that could be used to figure out if a photo originated from Facebook?
For example, is there any data I could extract from a resized jpg file downloaded from Facebook using ImageMagick or some other tool?
I don't see any way to do this right now other than to guess by filename (which I don't have in this case) or by dimensions.
AFAICS there is no way to discover any special metadata or EXIF data in photos that are downloaded from Facebook.
'Originated from Facebook' (your expression) in any way is wrongly stated. People upload lots of stuff to Facebook, but that doesn't mean it originates from there...
If you can provide any sample of fotos you are thinking of, one could start investigating a bit closer....

Getting facebook profile picture

i need to get the facebook profile picture of anyone by passing their id. But i no need to use facebook API or Graph anything else.. Just i need to give the url with that id.. Is it possible to get the profile picture in this way? I tried in google but i didnt get it. If anyone knows this please respond me...
Well, I think the only options available are:
https://graph.facebook.com/[PROFILE_ID]/picture (You can include this URL inside a tag and it will work).
Scrap yourself the page corresponding to the profile, i.e. http://www.facebook.com/profile.php?id=[PROFILE_ID] and get the URL of the picture there.
I would suggest you to use the first one, because it gives you more flexibility about the picture size (?type=small, ?type=thumbnail, etc).
Edit
Keep in mind that this answer is from 2011, and Facebook makes changes in its APIs frequently.
Apart from using Graph API as already mentioned above (https://graph.facebook.com/[PROFILE_ID]/picture), there are a couple more ways:
FlipTop has a service that pulls up all sorts of information on Facebook users, including direct CDN URLs (e.g. https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/275588_504804917_147319_n.jpg) of profile pictures. (Link to API documentation)
Cloudinary has a similar service, but with hosting thrown in the mix. They do require you to open an account, but it's free. Then you can use their CDN URL format to link to any picture like this: http://res.cloudinary.com/[YOUR_ACCOUNT]/image/facebook/[PROFILE_ID].jpg (Read more here)

Facebook "Reviews" Tab Data -- Where is it stored in Graph API and how to access it?

I'm totally stumped here. I'm trying to get access to the data that appears under the reviews tab in the Facebook Page http://facebook.com/freemanfoxx (Page ID=149530265092626).
I've figured out that all data in a Facebook profile can be retrieved as JSON using the Graph API but I'm totally stumped about the data populated on the "Reviews" tab. It appears to be it's own Application separate from the Facebook core and this is probably why I'm lost.
Any leads/tips/experts out there? Here are some of the links I've been searching for Help.
developers.facebook.com/docs/api
developers.facebook.com/docs/reference/api/
developers.facebook.com/docs/reference/api/application/
My overall goal is to take this data into Yahoo! Pipes and then combine it with data from a Google Form to create an RSS feed to be output to a webpage I'm building.
Your thoughts and help would be GREATLY appreciated!
Ryan
Let's say your reviews tab on the facebook page is:
http://www.facebook.com/easyinspection?sk=app_6261817190.
6261817190 is the application id (not page id), and that is what you will be using next.
You can get all reviews by a request to:
http://graph.facebook.com/6261817190/reviews. If you do not want to go page by page, retrieving 25 reviews at a time (take a look at next page url), you can get it all in a single request, like this:
http://graph.facebook.com/6261817190/reviews?limit=100000000&offset=0
There is no API for this data. Your only chance will be a web page crawl ov your reviews and grab the content from there.