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}
Related
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.
I'm developing an web application in Java and using facebook account for login to my applications. After sucessfull login i need to get the logged in facebook account user friend's details including email id's. I can get the logged in user's friend's profile details but not the email ids of them. It always shows null. How do i get the email ids of my facebook friends.
Any help is very much appreciated.
Currently, this is not supported by Facebook. You cannot get user's friends' email, regardless of what permissions the user gives your app. Refer to the this for details.
I own an application which has already granted the send-email extended permission. Unfortunately I didn't record the email address's upon their login process. Is there any way to get email of users now, even if they are not logged in?
Keep in mind that they have already granted the email extended permission, but unfortunately I didn't store their emails.
If you recorded their Facebook user ID, you could try to call graph.facebook.com/userID?access_token=... with your application access token or appID|appSecret.
I am developing an iPhone application that will send email to a logged in user friends'. I am using FacebookConnect for the same. The problem is I am getting the uid of all friends but what is the way to send email to these uids(friends UID).
Also I m not able to get the email id of any of the facebook friends.Can I get the emails of the users facebook friends in my iPhone App ?
Please help me out
Thanks
I don't think you can get email of friends. Although you can send an email to uids provided they have granted permission to you app.
A comma-separated list of recipient user IDs. The recipients must be people who have already authorized your application. You can email up to 100 people at a time.
Beyond general information you are require extended permissions which requires authentication (which you are using). Any extended permission works only with the user who has granted it to. So your app's user's friends will have to grant the permission to email before you can send them one. In other words, you can send a notification email to those friends of your user who have added your app and have granted you the permission to email. Facebook has this page on communicating via email.
I want users to able to sign up in my application(rails) using facebook connect.
However I am not very sure what all information of the user will be available ,specifically the email of the user. I know that the emails of the user's friends are not available, but not sure if the email of the user himself is available.
You can prompt the user for email extended permission.