I was wondering if its possible to get one's facebook profile (to be exact,'profile url') through their API?
I need an api to get fb profile link using a matching email address. I dont want to login to facebook though.I was trying to search for this but it seems you need to log in to facebook to get that.
Any idea or is it feasible?
You need ID of the concerned user which can't be achieved without using the Facebook Login, since Facebook login is the starting point to get the current user info (/me).
Search API could have helped you since you have the email ids of users, but unfortunately this api doesn't support user search with email!
So, answer is simple- NO, you cannot get the ID (profile link) of the user without using the facebook login.
Not that I can think of. Facebook's Graph API gives you some public info but that info given depends on the users Facebook's settings on what is public or not. You could maybe get some users profile picture but not others, making it not a very viable option for practical use. Hope that helps
Good Evening, i'm just asking how to get a user's friends emails using face book API or something else, the scenario i want to use this feature in goes as follows, my application has a feature called 'import facebook friends' that will do the following:
- verifies that this user has a valid facebook account
- asks him for his facebook identifier(email)
- from his identifier get all his friends and get everyone's email
i don't know if there's any API that performs this functionality?
You can get almost all details about friends like their photos,interests, status updates but not email address.
From Facebook Email Permission Page : "Note: There is no way for apps to obtain email addresses for a user's friends."
To get a user's email address, you need the user_email permission. However, there is no equivalent friends_email permission to get Friends' email addresses as Facebook doesn't allow applications to get these.
Instead, you the Facebook User ID to link friends together. That is the correct way to do things, since the email address can change anyway.
I am showing Gravatar's Avatar on my webpage comments
like that
$hash = md5(trim($row['email']));
$default_usr = urlencode('http://localhost/example/images/user-icon.jpg');
src=\"http://www.gravatar.com/avatar/$hash.'.jpg?s=45&d=$default_usr'\"
but i want that as avatar's when someone post a comment on my website using an email
which belong to its facebook account or twitter account his/her 's image shows on my website's comments too.
But i don't know how?
Any Facebook Lover or twitter lover who can help me Please Please.
I do not want to use facebook app i am developing my own comment widget using php where i want to use it
http://graph.facebook.com/paul.knox.anthony/picture
will get you the profile picture of a user from the Facebook graph API. file_get_contents() with PHP should allow you to grab that. However, it looks like you only have the email address of the user. In that case, you'll need authorisation from Facebook to get the user from just an email address.
See: Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth?
Facebook API - How do I get a Facebook user's profile image through the Facebook API (without requiring the user to "Allow" the application)
You are most likely going to have to do some OAuth stuff.
How can I get profile information in facebook according to emailid using an API?
You cannot access Facebook information by querying according to an email address. It is not an indexable field. There is NO way to get Facebook user information using an email address. You must use name or username
The email fiel is NOT indexable.
That means you can not search for a profile by using the email field (That would be a privacy issue).
You can take a look here to get more details:
http://developers.facebook.com/docs/reference/fql/user
The facebook API, are well documented:
http://developers.facebook.com/docs/reference/api/user
If you can read Java go through this nice tutorial on accessing Facebook after authenticating using OAuth. It includes a basic example of fetching an user's profile details.
I try to read email address, phone number from Facebook profile details to my iPhone Application. But, from my Facebook profile, I got name details, location details like that. But I can't get email and phone numbers.
In my program, first I get authentication using Oauth. I get all authentication. using following code.
[fbGraph authenticateUserWithCallbackObject:self andSelector:#selector(fbGraphCallback:) andExtendedPermissions:#"ads_management,xmpp_login,read_stream,read_requests,read_mailbox,read_insights,read_friendlists,email,user_work_history,user_website,user_videos,user_status,user_religion_politics,user_relationships,user_photo_video_tags,user_online_presence,user_notes,user_location,user_likes,user_interests,user_hometown,user_groups,user_events,user_education_history,user_activities,user_about_me,user_birthday,user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"];
But I can't read phone number and email address.
I use the following Code to read profile:
fb_graph_response = [fbGraph doGraphGet:#"me" withGetVars:nil];
It depends on the following URL: http://developers.facebook.com/docs/api.
My profile output is:
{"id":"1335802454","name":"Vel Murugan","first_name":"Vel","last_name":"Murugan","link":"http://www.facebook.com/profile.php?id=1335802454","about":"BE THE BEST OR BE WITH THE BEST","birthday":"05/12/1984","hometown":{"id":106076206097781,"name":"Madurai, India"},"location":{"id":106076206097781,"name":"Madurai, India"},"bio":"Hi","quotes":"What is ur Name?","work":[{"employer":{"id":114941651860886,"name":"yes"},"location":{"id":106076206097781,"name":"Madurai, India"},"position":{"id":106134736085305,"name":"Software developer"},"start_date":"2010-08","end_date":"0000-00","description":"IPHONE APPS DEVELOPER"}],"education":[{"school":{"id":110943172274244,"name":"MCA"},"year":{"id":133774113322262,"name":"2010"}},{"school":{"id":108627612500830,"name":"Bharathidasan University"},"concentration":[{"id":121317831214170,"name":"MCA"},{"id":137092149656664,"name":"Bsc maths"},{"id":151356271549645,"name":"+2"}]}],"gender":"male","relationship_status":"Single","religion":"NO","political":"NO","email":"apps+123145257717248.1335802454.e466b769c10a7745bcb11201de2aae7d#proxymail.facebook.com","website":"http://www.kailasanadhiswarar.org/","timezone":5.5,"locale":"en_US","verified":true,"updated_time":"2010-08-30T18:28:54+0000"}
As far as I know, the Facebook API does not allow you to get contact informations, such as e-mail and phone number.
I made an application in Flash a couple of month ago, using the Facebook Graph API, and from what I can remember, the recently updated security-restrictions on Facebook prohibits you from accessing your friends email-addresses (might be possible if every friend actively grants your application permission), and as for the phone-number: Is there even a phone-number-parameter in Facebook?
I'm not at all sure about this, but I think that's the way it is.
Facebook API does not allow you to get contact informations, such as e-mail and phone number.