I am using facebook graph api and I am able to get the email id of logged in user. I want to know that how can I retrieve any of my Friends email id using his/her id .
Is it possible or not ?
Thanks
No, you cannot retrieve emails nor phones of your friends through API. Facebook restricts this for security reasons.
Related
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 new to iphone.my question is How to get all email id's of friends which are in friendsList from facebook while using Graph API in iPhone? I am able to get all the pictures,name,first name and last name of the friends which are in friends list except the email id's how can we do this If any body know this please help me.IF any body provide some code for this it will be helpful for me....
You can't, e-mail addresses aren't available via API for friends due to privacy risks.
See the facebook Permissions Reference.
It is simply not possible to get the email addresses of Facebook users other than the user of your app (ie. the person who authorizes your app and for whom you get an access_token), not even Friends of the user. Even extended permissions won’t help here.
I have a problem regarding fetching emails of friends when a person has signed up to my site using his facebook account.
I am trying to fetch the email id (email or contact_email or proxied email) from the User table using FQL..but I get all null values in it.
This is my Fql query-
/fql?q=SELECT+uid+,+ name+,+ pic_square+,+affiliations+,+birthday_date+,+sex+,+relationship_status+,+current_location+,+education_history+,+work_history+,+contact_email+ FROM+ user+ WHERE+(sex='female')+AND+uid+ IN +(SELECT+ uid2+ FROM +friend+ WHERE+ uid1=me())
Now when I am not able to fetch the email ids ,I am not able to send invitations to them automatically .
Give me some suggestions
PS I don't want to send personal messages or post on the facebook walls.
I don't think that you can do that.
If you look at the official documentation for the permissions: http://developers.facebook.com/docs/reference/api/permissions/ and look for the "email" permission which you need the user to grant you in order to get his email, next to it in the "Friends permission" column you'll see "N/A".
That should tell you that you can not get the e-mail address of the friends, and that's a good thing that facebook are not providing.
EDIT
You can also check out this thread: Facebook friends email FQL
Can anyone tell me if there are any fields in the FB Graph that list a users twitter ID if they've linked it to Facebook.
No, there's no place in a Facebook profile to provide that information, and no way to retrieve it either - you'd have to get your user to log in to both Facebook and Twitter using their respective APIs
I have access_token for facebook application. Is there a way I can get the contact information(phone-number) of the user of my facebook application?
Below is the url which returns me all the public information like name, location, education etc.. but not any contact information
https://graph.facebook.com/me?access_token=XXXX....
Thanks in advance!!
You can't get a phone number from the Graph API. You can get an email though if you have the email extended permission: http://developers.facebook.com/docs/authentication/permissions. If you are a whitelisted app I believe you can send Facebook messages as well through the API.