I am going to retrieve Facebook friends email addresses in one of my applications. I have asked the permission for "user_friends" and "email" apart from other permissions, but when I try to get the email addresses for my friends list, email address is not returning. I could able to get other information but not email address. I tested the same using Graph API tool, it is also giving the same result.
Can anyone suggest what was the issue in getting facebook friend's email addresses?
There is no way of getting friends' email addresses. The email permission is used to get the user's email address, and user_friends permission is to find friends who also uses the same application.
The reason both your app and the Graph API doesn't return email addresses is because it's not possible (for obvious reasons, like spamming). There is no way around this.
If you want to invite friends to use your application, use one of the other methods like Sharing, Requests or Tagging.
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 had used the 'friend.get' api method to get the friends id and from id i am trying to fetch the friends details can not get the friend contact detail in it. So please let me know if you have any solution for the same.
You cannot get a user's friends' contact info using the Facebook API (as of October 11, 2011).
The only contact info you can get is the user's email address, and you must explicitly request that permission in order to have access to it. You'll note in the page I just linked to that the "email" permission is only available for the user, not for the user's friends.
As far as other contact info, like phone numbers and home addresses, that is not currently available, even for an authenticated user. (See this SO question, where one answer references this Facebook blog post, which describes how Facebook added (on January 14, 2011) two new permissions, "user_address" and "user_mobile_phone", but the previous link to the Facebook permissions page makes it clear that those permissions are no longer available. And even if they were still available, they were only meant for an authenticated user, not for a user's friends.)
It's only possible to view public information of a user's friends and any other user for that matter. You must get each individual user to accept a permission request from your application - this will then give you permission to extra information.
You haven't specified which contact information you're wanting, but with any permissions granted you will be unable to request the phone number, you can however get the email address of the current user by requesting the 'email' permission documented here. You'll notice on on the documentation, that in the Friend's Permission column for email says 'N/A' (thus, you can't get a user's friends email addresses).
Another thing to notice is that it's not even possible to retrieve your own phone number using the Graph API.
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.
Using the Facebook API, is there a way of getting a friend's phone/cell number? I'm sure I saw an app a while ago that could sync Facebook with your Mac Address Book, but I haven't found anything in the API documentation that allows you to get a friend's number. Is this possible?
Thanks in advance.
According to the FQL documentation, no. The User table and Standard user info table would be the storage place for that information, but no phone number column is listed. Also, Users.getInfo() and Users.getStandardInfo() do not evidently include phone number information either.
Perhaps the app you saw strictly managed email and physical mailing addresses?
Yes above answre is right i have properly search to find the Friend phone numbers with Graph API with PHP SDK 3.1.1 but fail because the facebook do not provide any phone number and email of the Friends but other information can get get easily via code.