Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email is missing #61

Closed
lyseiha opened this issue Jun 25, 2021 · 8 comments
Closed

email is missing #61

lyseiha opened this issue Jun 25, 2021 · 8 comments
Labels
needs triage all info present, but no root cause analytis yet no reproduction needs a minimal reproducible example

Comments

@lyseiha
Copy link

lyseiha commented Jun 25, 2021

When i try to get email in android, i always get response null

@lyseiha
Copy link
Author

lyseiha commented Jun 25, 2021

Screen Shot 2021-06-25 at 5 15 16 PM

@thebergamo thebergamo added needs triage all info present, but no root cause analytis yet no reproduction needs a minimal reproducible example labels Jun 25, 2021
@mikehardy
Copy link
Collaborator

@lyseiha with no reproduction example, there is no ability to offer help https://stackoverflow.com/help/minimal-reproducible-example

@mikehardy
Copy link
Collaborator

Still missing reproduction, no activity. Can always reopen, but closing to clean issue list.

@kauesedrez
Copy link

I get email using Graph. I hope this help.


 async _facebookSignIn() {
    try {
      const result = await LoginManager.logInWithPermissions(
        ["public_profile", "email"],
        "limited",
        "my_nonce"
      );

      const result2 = await AccessToken.getCurrentAccessToken();

      return new GraphRequestManager()
        .addRequest(
          new GraphRequest(
            "/me?fields=name,email",
            null,
            (error, result3) => {
              if (error) {
                console.log(error)
              } else {
                console.log(result3)
              }
            }
          )
        )
        .start()

      //
    } catch (error) {
      console.log(error);
    }
  }

@mduthilleul
Copy link

Same problem here. I use await LoginManager.logInWithPermissions(["public_profile", "email"]) but email is still empty on Firebase. And the code to fetch the email doesn't either. I get an id and the name, but not the email. Looks like the email permission is not taken in account. Maybe we are missing a configuration on the FB console ?

@Bob-JZhao
Copy link

Hi @mikehardy, I also noticed that email is missing on android, checked the code here(

if (Platform.OS !== 'android') {
) do you have any idea why don't return email if platform is android? Thanks in advance!

@mikehardy
Copy link
Collaborator

@Bob-JZhao no idea, sorry, and no time to dig in. You'll have to instrument the code in node_modules directly as layers are traversed by API calls, investigating call parameters / return result data and see what's what

@PR-Here
Copy link

PR-Here commented Sep 6, 2022

@lyseiha have you get any solution regarding email?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage all info present, but no root cause analytis yet no reproduction needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

7 participants