ngFacebook icon indicating copy to clipboard operation
ngFacebook copied to clipboard

How do I access the user's email address?

Open iamaro opened this issue 9 years ago • 4 comments

I'm requesting the permission on login, but doing the /me api request only returns the user ID and name.

What request should I be doing to get their email as well?

Thanks, Clay

iamaro avatar Sep 11 '15 16:09 iamaro

Figured it out:

$facebook.api('/me?fields=id,name,email').then(function(fb_user) { console.log(fb_user) });

iamaro avatar Sep 11 '15 16:09 iamaro

Thank you. I was having the same issue.

peterAzv avatar Sep 11 '15 16:09 peterAzv

work like a charm, awesome.

asankaub avatar Nov 17 '15 17:11 asankaub

Thank you. It works for me also

manojojha avatar Mar 30 '17 18:03 manojojha