Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Not Getting email from response. #326

Open
DipakSkywave opened this issue Aug 25, 2021 · 0 comments
Open

Not Getting email from response. #326

DipakSkywave opened this issue Aug 25, 2021 · 0 comments

Comments

@DipakSkywave
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant