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

Facebook OAuth Error: Error getting user email from external provider #1791

Open
mliebold opened this issue Oct 6, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mliebold
Copy link

mliebold commented Oct 6, 2024

Bug report

Describe the bug

When setting up OAuth with Facebook Login I am getting the error "Error getting user email from external provider". I have seen this error posted several other times here, but I have not an actual solution.

  • I have the scope added and when checking permissions on the Facebook Graph API Explorer it shows that the email scope is granted.
    image
  • When I try to return the email in the Facebook Graph API Explorer using me?fields=id,name,email it does not return the email and tells me "The email field was not returned. This may be because the email was missing, invalid or hasn't been confirmed."
    image
  • The email scope states "The email permission allows your app to read a person's primary email address."

What I assume is happening is that my Facebook account is old and at some point, I deleted the original email and added my new one. Facebook is probably not setting this email as a "Primary Email" in the backend and there does not seem to be a way to do so manually on my end. It does not make sense why they would not return my email when I am using it to sign in to my Facebook account.

This issue seems to most likely be on the Facebook end and I submitted a support ticket with them. But, relying so heavily on the email return for the authentication seems to be a bit of a flaw. I would like to use Supabase as my backend service including for authentication, but it doesn't seem very reliable if any users that go to sign into my application will not be able to if they have changed their email at some point in the past.

Any additional information on if my assumption is correct, or if there is a way around this issue, besides using a different authentication service, would be great.

Thank you

To Reproduce

Don't think you will be able to reproduce it unless you have a Facebook account that has changed email addresses

@mliebold mliebold added the bug Something isn't working label Oct 6, 2024
@AudunBeck
Copy link

I think I am having the same issue, I more recently moved over to a new email for my barely used facebook account.
While testing out Supabase auth for a project it keeps giving me the "Error getting user email from external provider".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants