-
Notifications
You must be signed in to change notification settings - Fork 897
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
When user try with facebook login auth/missing-identifier is being returned #8678
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I think we need some more information here. Is this a new user whose very first sign-in is with Facebook, or is this an existing user that had already created an account some other way (for example, with email/password, or Google sign-in) and they're now additionally trying to sign in with Facebook login? Does the user not have an "email address in their profile" in their existing account in your project, or they don't have an email address in their Facebook profile (I don't think this is possible?). If it's the first one, what's the other sign-in method they used before Facebook, or how was their user account created? |
New User Signing in for the First Time with Facebook: This user has never signed in to my app before. |
Hi @spdecodeup, Two things immediately come to mind as to what could be going wrong, but I think they're all backend related and not SDK related:
If you continue to have issues then I recommend opening up a Firebase Support Ticket, since it's the backend that is responsible for fetching the user's email from Facebook and not the SDK, which is just wrapping a response from the service in a JavaScript typed object. I hope this helps! |
Hi @DellaBitta , Thanks for your insights! As per the video, our settings are enabled for both public_profile and email. The user has indeed shared their email address, but the issue seems to be that they’ve changed their Facebook email address. We reached out to Firebase Support, and they informed us that this issue is stemming from the SDK. It seems like the SDK is not properly syncing the updated email address after the change, which could be causing the issue. We’ll keep troubleshooting on this front and will look into any further SDK updates or potential workarounds. Additionally, with the Flutter package, the user account is being created in the users table in authentication. Let me know if you have any additional suggestions! |
Hi @spdecodeup, I'm sorry that I misunderstood the issue yesterday. I didn't quite get the fact that the user later changed their email sharing setting. I tested this quite a bit today and I never encountered the Unfortunately I still think this is a service issue and you should reopen your older ticket with Firebase Support. Feel free to ask them to reach out to me if they have questions but I hope I have enough information in this ticket for them to investigate this further. I ensured that the errant email data was not being cached on the client side, and I have ways that this can be tested by the support team. Here's what I've dug up today: There seems to be an issue with caching information between the Firebase project and the Facebook project. I'm not sure if this is on the Facebook service side or the Firebase service side. I ended up creating two Facebook projects, each with identical permissions to be able to view the user's email addresses ( At first my Facebook user account had its email sharing settings set to I signed in with my Facebook user account credentials -- the resulting Firebase user didn't have an email address. I then went to my Facebook user account and made my email address public. I deleted the user in the Firebase console and signed in again. Still no email, as you reported. A note: whenever testing a new configuration I delete the user in the Firebase console so that each has a new Then, with my email address still marked as public in my Facebook user account, I created a new Facebook App and replaced the Facebook As a final test I reconfigured the Firebase console to use the original Facebook App. I deleted the user in the Firebase console and deleted all local data in the browser (click the icon next to the URL, Without changing my email sharing settings in my Facebook user account (which is still set to public) I signed in again and the resulting Firebase account didn't have an email address. I flip back and forth between the two Facebook projects in the Firebase console without touching my Facebook user account settings, deleting the user in the Firebase console and then signing in. A Firebase user account created with the first Facebook app doesn't have an email address, whereas a Firebase user account created with the second Facebook app does. Finally, local storage aside, one can see the Firebase service response for each configuration's users via I hope this helps you and the Firebase support team! Edit: I should point out that the second Facebook App still returns an email address for my Facebook user despite having subsequently reset the Facebook user's email address sharing config to |
Operating System
windows 11
Environment (if applicable)
Chrome 131.0.6778.139
Firebase SDK Version
11.0.2
Firebase SDK Product(s)
Auth
Project Tooling
React app with webpack and vite
Detailed Problem Description
When user try to login with there facebook account and user don't have email address in their profile. I am encounter with an error like this auth/missing-identifier.
Steps and code to reproduce issue
await signInWithPopup(auth, facebookProvider);
The text was updated successfully, but these errors were encountered: