You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered: