i need help to get facebook user's email. here's what I did.
https://graph.facebook.com/me?scope=email&access_token=xxxxxxxxxxxxxxxx
the result I got back has no email in it.
{
"id": "7027110",
"name": "John Mike",
"first_name": "John",
"last_name": "Mike",
"link": "http://www.facebook.com/john.mike",
"username": "john.mike",
"location": {
"id": "11241875545",
"name": "Oakland, New Jersey"
},
"gender": "male",
"timezone": -5,
"locale": "en_US",
"verified": true,
"updated_time": "2011-12-07T16:53:47+0000"
}
also tried to change scope=email to fields=email, still does not work. whats missing, please help me out
You can get user email like this:
https://graph.facebook.com/v2.5/me?fields=id,name,email
more detail go here
Did you obtain the email
extended permission from the user? You can check which permissions your access token has been granted with a call to /me/permissions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With