Facebook GraphAPI, get user's email - facebook

I want to use GraphAPI to get email. However when I call this in an OAuth request (I'm using scribe, in java), I can retrieve first_name, last_name, but not email, any idea? Tks
https://graph.facebook.com/me?fields=first_name,last_name,email

To be able to retrieve email from user object you need to request email permission first.

Related

How can I find user's facebook uid through their email?

Currently I have an email but I can't find the uid of that facebook . So how can I find that facebook uid via email?
Thanks for your replies
The only way to match users to an email is to authorize them with the email permission and check if it is the same one. There is no way to get or validate any user info without authorization.

Get EmailId from UID?

I got the following from fiddler whenever I try to login to dropbox.
[{"uid": 663175210, "sess_id": 272608865417613682242215474540606531660, "expires": 1495277184, "team_id": 2059286, "role": "work"}]
Notice that uid is being passed. I did some google and found that the uid is The Dropbox user ID of the authorized user.
Is there any way i can get the user email id (used to login to dropbox) using dropbox API, given that i have the corresponding uid?
No, the Dropbox API doesn't offer a way to retrieve the user's email address by supplying the uid.
If the user has authorized your app on the API though, you can use the /2/users/get_current_account API call to get their account information, including email address.

How to retrive friends email id from connections

How to retrive friends email id from connections. using API.We are using auth for the development purpose.
With Regards
Gurudath
Thankfully, this is not possible for privacy reasons. You can only get the email of the authorized user with the email permission.

Get user's email in FBConnect iphone sdk

do you know how to get in fbconnect the user email for iphone sdk?
I get uid, name and sex. But I can't get the email.
(void)session:(FBSession *)session didLogin:(FBUID)uid {
NSString *fql=[NSString stringWithFormat:#"select uid,name,sex,email,birthday from user where uid == %lld", uid];
http://developers.facebook.com/docs/guides/mobile/ here I don't see a solution.
thanks
The user needs to authorize the app to get the email.
In order to fetch user's email address, facebook requires developers to request "email" permission from the user and if the user grants the permission, you'll be able to fetch their email address.
There's a detailed documentation about the various types of permissions that your app can request from the user which enables your app to either read or write certain information on the user's behalf. Have a look:
https://developers.facebook.com/docs/reference/api/permissions/

Facebook "Send me an email" permission

I prompted for the "email" permission in my Facebook application. However, when I access the graph api of the user, there is no field called "email" available even though I know they have an email on Facebook. Why?
As far as I know based on my experience with their API, Facebook does not offer access to the messaging framework, therefore you are not allowed to send messages on a user's behalf.
Is this for a test user where you know they accepted the permissions prompt and have an email?
How are you trying to get the email? I get them via FQL:
SELECT first_name, last_name, email from user where uid = {userid}