Created
August 19, 2017 14:37
-
-
Save dhirajbajaj/eeb49e83d2deb79755e413f695c7ef11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Query | |
curl -i -X GET \ | |
"https://graph.facebook.com/v2.10/me?fields=id%2Cname%2Cbirthday%2Cemail%2Ceducation%2Cgender%2Cpicture%2Cfirst_name%2Clast_name%2Chometown%2Clocation%2Cverified%2Cwork%2Crelationship_status%2Creligion%2Cpolitical%2Clink%2Ccontext%2Cphotos&access_token=<access token sanitized>" | |
=== Access Token Info | |
{ | |
"perms": [ | |
"user_birthday", | |
"user_religion_politics", | |
"user_relationships", | |
"user_relationship_details", | |
"user_hometown", | |
"user_location", | |
"user_likes", | |
"user_education_history", | |
"user_work_history", | |
"user_photos", | |
"user_friends", | |
"user_about_me", | |
"user_status", | |
"user_tagged_places", | |
"email", | |
"public_profile", | |
"basic_info" | |
], | |
"user_id": "10213255017746896", | |
"app_id": 247617579088355 | |
} | |
=== Parameters | |
- Query Parameters | |
{ | |
"fields": "id,name,birthday,email,education,gender,picture,first_name,last_name,hometown,location,verified,work,relationship_status,religion,political,link,context,photos" | |
} | |
- POST Parameters | |
{} | |
=== Response | |
{ | |
"id": "10213255017746896", | |
"name": "Dhiraj Bajaj", | |
"birthday": "03/05/1986", | |
"email": "[email protected]", | |
"education": [ | |
{ | |
"school": { | |
"id": "106704666048539", | |
"name": "JAYCEES PUBLIC SCHOOL, Rudrapur" | |
}, | |
"type": "High School", | |
"year": { | |
"id": "113125125403208", | |
"name": "2004" | |
}, | |
"id": "1876690033887" | |
}, | |
{ | |
"school": { | |
"id": "101060880038369", | |
"name": "St Peter's High School" | |
}, | |
"type": "High School", | |
"year": { | |
"id": "194878617211512", | |
"name": "2002" | |
}, | |
"id": "1876689993886" | |
}, | |
{ | |
"school": { | |
"id": "133549100000122", | |
"name": "College of Engineering, Roorkee" | |
}, | |
"type": "College", | |
"id": "1876690073888" | |
} | |
], | |
"gender": "male", | |
"picture": { | |
"data": { | |
"is_silhouette": false, | |
"url": "https://scontent.xx.fbcdn.net/v/t1.0-1/p50x50/14721522_10210332679250260_7901502265643808316_n.jpg?oh=3ead677fbb076b361fa014b24227ccd8&oe=59EB9ABF" | |
} | |
}, | |
"first_name": "Dhiraj", | |
"last_name": "Bajaj", | |
"hometown": { | |
"id": "102161913158207", | |
"name": "Delhi, India" | |
}, | |
"location": { | |
"id": "106517799384578", | |
"name": "New Delhi, India" | |
}, | |
"verified": true, | |
"work": [ | |
{ | |
"employer": { | |
"id": "106079059470506", | |
"name": "U2opia Mobile" | |
}, | |
"location": { | |
"id": "106487939387579", | |
"name": "Gurgaon, Haryana" | |
}, | |
"position": { | |
"id": "951717571639283", | |
"name": "Product/Tech" | |
}, | |
"start_date": "2016-11-13", | |
"id": "10210687815848453" | |
}, | |
{ | |
"employer": { | |
"id": "115201351823736", | |
"name": "Freelance" | |
}, | |
"position": { | |
"id": "111926488822704", | |
"name": "Freelancer" | |
}, | |
"start_date": "0000-00", | |
"id": "10204044673054035" | |
}, | |
{ | |
"end_date": "2012-08-17", | |
"employer": { | |
"id": "436826960480", | |
"name": "Infosys" | |
}, | |
"location": { | |
"id": "110684188959162", | |
"name": "Chandigarh, India" | |
}, | |
"position": { | |
"id": "106134736085305", | |
"name": "Software Developer" | |
}, | |
"start_date": "2009-06-08", | |
"id": "1876689953885" | |
}, | |
{ | |
"end_date": "0000-00", | |
"employer": { | |
"id": "1430680447246248", | |
"name": "TripMD" | |
}, | |
"location": { | |
"id": "106517799384578", | |
"name": "New Delhi, India" | |
}, | |
"position": { | |
"id": "106275566077710", | |
"name": "Chief Technology Officer" | |
}, | |
"start_date": "0000-00", | |
"id": "10206113768060117" | |
} | |
], | |
"relationship_status": "Single", | |
"religion": "believer of god", | |
"political": "none", | |
"link": "https://www.facebook.com/app_scoped_user_id/10213255017746896/", | |
"context": { | |
"mutual_friends": { | |
"data": [ | |
{ | |
"name": "Neeraj Bajaj", | |
"id": "10155728420024994" | |
} | |
], | |
"paging": { | |
"cursors": { | |
"before": "MTAxNTU3Mjg0MjAwMjQ5OTQZD", | |
"after": "MTAxNTU3Mjg0MjAwMjQ5OTQZD" | |
} | |
}, | |
"summary": { | |
"total_count": 420 | |
} | |
}, | |
"mutual_likes": { | |
"data": [ | |
{ | |
"name": "PlayGround +", | |
"id": "259754044357933" | |
}, | |
{ | |
"name": "Nas Daily", | |
"id": "574719552680201" | |
}, | |
{ | |
"name": "Auditive Escape", | |
"id": "213334905444938" | |
}, | |
{ | |
"name": "Alamlolz", | |
"id": "1564745000210979" | |
}, | |
{ | |
"name": "Russell Brand", | |
"id": "21641548176" | |
}, | |
{ | |
"name": "Camp Roxx", | |
"id": "338991896216" | |
}, | |
{ | |
"name": "FactorDaily", | |
"id": "1687688968130902" | |
}, | |
{ | |
"name": "Science Channel", | |
"id": "14391502916" | |
}, | |
{ | |
"name": "Om Nom Nom", | |
"id": "1086112288065712" | |
}, | |
{ | |
"name": "TED-Ed", | |
"id": "203906229622591" | |
}, | |
{ | |
"name": "Bored Panda", | |
"id": "126260014251" | |
}, | |
{ | |
"name": "Saurabh Moody Page", | |
"id": "203455206763149" | |
}, | |
{ | |
"name": "HISTORY", | |
"id": "238044912896496" | |
}, | |
{ | |
"name": "Ayurveda by Curejoy", | |
"id": "140113159493240" | |
}, | |
{ | |
"name": "With love, Shweta", | |
"id": "163192800450130" | |
}, | |
{ | |
"name": "Olympic", | |
"id": "209361989215" | |
}, | |
{ | |
"name": "The Verge", | |
"id": "193742123995472" | |
}, | |
{ | |
"name": "Recode", | |
"id": "568451346578186" | |
}, | |
{ | |
"name": "Lifehack.org", | |
"id": "109565802405671" | |
}, | |
{ | |
"name": "Ludwig van Beethoven", | |
"id": "1274391992590662" | |
}, | |
{ | |
"name": "Ancient Bharat (India)", | |
"id": "112808875509662" | |
}, | |
{ | |
"name": "Pakulu Papito", | |
"id": "767961243321646" | |
}, | |
{ | |
"name": "Mountain Dew India", | |
"id": "171195082892500" | |
}, | |
{ | |
"name": "Saurabh Sharma", | |
"id": "1029172717156071" | |
}, | |
{ | |
"name": "POKE - Power Of Knowledge & Education", | |
"id": "1610241429252311" | |
} | |
], | |
"paging": { | |
"cursors": { | |
"before": "MjU5NzU0MDQ0MzU3OTMz", | |
"after": "MTYxMDI0MTQyOTI1MjMxMQZDZD" | |
}, | |
"next": "https://graph.facebook.com/v2.10/dXNlcl9jb250ZAXh0OgGQSe3dKF4r63qlVtugGAFvyCt5eVvcxJX9bLhcZBE6wWgW7mmiNXBP5YDyELZCLDUjr6lVZB2VcWMMSIU56ajVfEPqKE5ccR1AgadD5dpQwZBJ6NYZD/mutual_likes?access_token=EAADhNPXXeeMBALtwWdFzGAZAmb1u5ijO5ZAF7LencbBunKGNrZBozYQNkMnZALicqOHkxgFvZCPm72SSPLV02pC9HdB6rTu9ZCi84We2TFIcN0m69DOBdB8NnnvYMk0ttxVjjRo91LizzZCspxXo8p85jgXBUxjjFhy1vVl450ToiNZBYlVt7O5rt491AHyZA1dTJaNQrP7UW9AZDZD&pretty=0&limit=25&after=MTYxMDI0MTQyOTI1MjMxMQZDZD" | |
}, | |
"summary": { | |
"total_count": 100 | |
} | |
}, | |
"id": "dXNlcl9jb250ZAXh0OgGQgq5d0jCSYYt5UqVrouoQ9Vz8CQFf64UwNF7gIkVTq9cc71fLb7pZB6XrViW5L1xi6XqsOqV8OUdEBPAK1gpFh56JsBWc4W4CRy3y0AcBpV2wZD" | |
}, | |
"photos": { | |
"data": [ | |
{ | |
"created_time": "2017-03-07T17:23:36+0000", | |
"id": "994068767403465" | |
}, | |
{ | |
"created_time": "2016-10-20T17:44:41+0000", | |
"name": "#triwe #travellove #rajasthandairies #amerfort #selfietym .! 😁", | |
"id": "1184492898254880" | |
}, | |
{ | |
"created_time": "2016-10-12T06:54:46+0000", | |
"name": "ATM our kickass camel..:) ready for the ride..", | |
"id": "10210332474965153" | |
}, | |
{ | |
"created_time": "2016-01-11T17:29:16+0000", | |
"name": "P.C : Neeraj Bajaj", | |
"id": "995891290448376" | |
}, | |
{ | |
"created_time": "2015-12-13T08:34:49+0000", | |
"name": "One more down... :)", | |
"id": "10207844609930082" | |
}, | |
{ | |
"created_time": "2015-10-11T12:33:03+0000", | |
"name": "Happiness is being with best people of your life n rock the floor..!! ;) Love u all..!! :* :)", | |
"id": "956095777761261" | |
}, | |
{ | |
"created_time": "2015-07-29T05:23:19+0000", | |
"id": "870584576345444" | |
}, | |
{ | |
"created_time": "2015-05-03T04:50:29+0000", | |
"name": "The Trippers...", | |
"id": "10206262504178427" | |
}, | |
{ | |
"created_time": "2015-03-24T16:51:55+0000", | |
"name": "Chill maring !!", | |
"id": "808714139199155" | |
}, | |
{ | |
"created_time": "2015-01-20T15:24:34+0000", | |
"name": "sadda jatt is back from china...", | |
"id": "10205474203031391" | |
}, | |
{ | |
"created_time": "2014-12-23T12:29:16+0000", | |
"name": "nice...", | |
"id": "10205200063738080" | |
}, | |
{ | |
"created_time": "2014-12-20T17:43:56+0000", | |
"name": "bro kithe...", | |
"id": "10205174372975827" | |
}, | |
{ | |
"created_time": "2014-06-05T11:09:41+0000", | |
"name": "Everyone miss this life", | |
"id": "765297930161189" | |
}, | |
{ | |
"created_time": "2014-04-03T08:13:45+0000", | |
"name": "Ghar se hum chale... Bus ek backpack... Aur... Tent :)", | |
"id": "10203285504195288" | |
}, | |
{ | |
"created_time": "2014-03-23T17:20:47+0000", | |
"name": "For u Neeraj ... <3", | |
"id": "611217135615524" | |
}, | |
{ | |
"created_time": "2014-03-23T11:53:29+0000", | |
"name": "My paternal family", | |
"id": "610991722304732" | |
}, | |
{ | |
"created_time": "2014-03-23T12:22:24+0000", | |
"id": "611004355636802" | |
}, | |
{ | |
"created_time": "2014-01-27T16:19:09+0000", | |
"name": "And i found this... Soooo kewt", | |
"id": "10202846739346441" | |
}, | |
{ | |
"created_time": "2013-04-04T15:02:48+0000", | |
"name": "enjoying mexican burritos with cold drink", | |
"id": "292676530862454" | |
}, | |
{ | |
"created_time": "2013-03-30T19:31:32+0000", | |
"name": "Miss you Guys", | |
"id": "456343324434310" | |
}, | |
{ | |
"created_time": "2012-06-08T10:17:33+0000", | |
"id": "10150988313200813" | |
}, | |
{ | |
"created_time": "2011-12-24T05:22:25+0000", | |
"id": "239248542812387" | |
}, | |
{ | |
"created_time": "2011-11-01T14:23:53+0000", | |
"id": "10150423198450813" | |
}, | |
{ | |
"created_time": "2011-10-28T09:22:53+0000", | |
"id": "266027316768445" | |
}, | |
{ | |
"created_time": "2011-10-26T19:28:25+0000", | |
"id": "210346755702566" | |
} | |
], | |
"paging": { | |
"cursors": { | |
"before": "T1RrME1EWTROelkzTkRBek5EWTFPakUwT0RnNU1EYzBNVGc2TXprME1EZAzVOalF3TmpRM09ETTIZD", | |
"after": "TWpFd016UTJOelUxTnpBeU5UWTJPakV6TVRrMk5UZAzNNek02TXprME1EZAzVOalF3TmpRM09ETTIZD" | |
}, | |
"next": "https://graph.facebook.com/v2.10/10213255017746896/photos?access_token=EAADhNPXXeeMBALtwWdFzGAZAmb1u5ijO5ZAF7LencbBunKGNrZBozYQNkMnZALicqOHkxgFvZCPm72SSPLV02pC9HdB6rTu9ZCi84We2TFIcN0m69DOBdB8NnnvYMk0ttxVjjRo91LizzZCspxXo8p85jgXBUxjjFhy1vVl450ToiNZBYlVt7O5rt491AHyZA1dTJaNQrP7UW9AZDZD&pretty=0&limit=25&after=TWpFd016UTJOelUxTnpBeU5UWTJPakV6TVRrMk5UZAzNNek02TXprME1EZAzVOalF3TmpRM09ETTIZD" | |
} | |
}, | |
"__debug__": { | |
"messages": [ | |
{ | |
"message": "total_count represents the approximate number of nodes on the mutual_friends edge. The actual number of results returned might be different depending on privacy settings.", | |
"type": "info" | |
} | |
] | |
} | |
} | |
=== Debug Information from Graph API Explorer | |
- https://developers.facebook.com/tools/explorer/247617579088355?method=GET&path=me%3Ffields%3Did%2Cname%2Cbirthday%2Cemail%2Ceducation%2Cgender%2Cpicture%2Cfirst_name%2Clast_name%2Chometown%2Clocation%2Cverified%2Cwork%2Crelationship_status%2Creligion%2Cpolitical%2Clink%2Ccontext%2Cphotos&version=v2.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment