Not Getting email from response.
DipakSkywave opened this issue · 0 comments
DipakSkywave commented
I'll try this code :
final result = await facebookSignIn.logInWithReadPermissions(['email']);
final token = result.accessToken.token;
final graphResponse = await http.get(
'https://graph.facebook.com/v2.12/me?fields=name,first_name,last_name,email&access_token=${token}');
final profile = JSON.decode(graphResponse.body);
But not getting an email from my profile.
Getting my response like this,
{
"name": "Iiro Krankka",
"first_name": "Iiro",
"last_name": "Krankka",
"id": ""
}
If, anybody has a solution then tell me how to solve this problem?
Thanks.