Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API: is it possible to get a user's public profile data by email address? [duplicate]

Possible Duplicate:
Find Facebook user (url to profile page) by known email address

I have a list of email addresses from people that use my app. Is it possible to query for their facebook public data by email address?

Thanks Richard.

like image 458
Richard H Avatar asked May 14 '10 10:05

Richard H


People also ask

What data can you get from Facebook API?

With the Facebook Graph API, you can access a wide range of user data, including user information such as name, email address, birthday, and friends list in JSON. You can also access information about pages that a user has liked or engaged with on Facebook, as well as events and photos that they have posted or shared.

Does Facebook have a public API?

With the Facebook API, you can access and read public data for Facebook Pages that you are not the admin of. This data, including business metadata, public comments, and posts, can be used for competitive analysis and benchmarking.

How do I pull data from Facebook?

If you want to download a copy of your information from Facebook, you can use the Download Your Information tool. Tap in the top right of Facebook. Scroll down and tap Settings. Scroll down to Your Facebook Information and tap Download Your Information.


1 Answers

Any application can fetch users(application authorized users) facebookID in user basic information via graph api or fql. for exa. https://graph.facebook.com/me?access_token=[facebook returned access token]

it will return these information in JSON

{
   "id": "100001114785800",
   "name": "Stella Jackson",
   "first_name": "Stella",
   "last_name": "Jackson",
   "link": "http://www.facebook.com/profile.php?id=100001114785800",
   "birthday": "04/16/1987",
   "gender": "female",
   "interested_in": [
      "female"
   ],
   "timezone": 5.5,
   "locale": "en_US",
   "updated_time": "2010-10-08T13:26:10+0000"
}

Once you get user ID you can fetch user picture via graph api

https://graph.facebook.com/[user facebook id]?fields=id,name,picture https://graph.facebook.com/100001114785800?fields=id,name,picture

OR

https://graph.facebook.com/100001114785800/picture?type=small

type can be small, normal, large, square

Best luck Richard

like image 198
Seema Avatar answered Oct 29 '22 14:10

Seema