I am trying to get user email address from Facebook iOS sdk (3.1) but cant seem to find a way to do that. I have added email as the permission in requestToMe
but the FBGraphUser
object returned in
[[FBRequest requestForMe] startWithCompletionHandler:
^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) {
}];
Does not have an email property at all. Is there another API call to get user email?
Thanks
Try deleting your application in Facebook and see if you can get the email address when you reauthorize. If you authorized the application and then added code to get the email, you won't be able to get the email from Facebook accounts that previously authorized it.
I've run in to this issue in the past.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.