AlmogBaku / ngFacebook

DEPRECATED Angular facebook service
MIT License
261 stars 70 forks source link

How do I access the user's email address? #57

Open iamaro opened 9 years ago

iamaro commented 9 years ago

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 commented 9 years ago

Figured it out:

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

peterAzv commented 9 years ago

Thank you. I was having the same issue.

asankaub commented 8 years ago

work like a charm, awesome.

manojojha commented 7 years ago

Thank you. It works for me also