-
Notifications
You must be signed in to change notification settings - Fork 1.9k
If facebook email permission is not granted, no error handling occurs #352
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
Comments
As an additional feature request, it would be nice to have the list of all denied permissions exposed to the client app. I certainly agree that the missing email permission should be handled by the library (since it is required for Firebase to work), but it would be nice to be notified if the user has denied any other permissions. |
Thanks for this report! That's an error case I had not thought about. |
I think this issue was supposed to be closed when 1.0 was released by @amandle |
In version 1.0 is still no UI, which explains that the email is obligatory if the user has unchecked the email option and tries to log in
|
Here is my error using the last version of FirebaseUI
The problem was related to this issue: http://stackoverflow.com/questions/16630972/facebook-graph-api-wont-return-email-address |
I don't understand the handling of this issue for Facebook. Right now the user is able to elect to not share their email address. Whether they do this or Facebook fails to return an email address anyway (because it is unverified, etc.) the user is dropped back to the Provider picker screen without being told anything failed. As developers we have no ability to fix this at this point as we are still in the FirebaseUI activity. When the user confusedly backs out to the main activity all we can can inform them that they are still not logged in with no explanation. In particular it is inconsistent with the way you handle emails for Twitter. On Twitter the user can also elect to keep their email private. In this case FirebaseUI works fine and registers them to the Firebase user list with a blank email address. |
If a user does not grant the permission for the email address:
There is neither an error handling in
FacebookProvider.java
(the caughtJSONException
only closes the loading dialog):nor an error handling in
AuthMethodPickerActivity.java
According to the facebook permission handling guidlines https://developers.facebook.com/docs/facebook-login/handling-declined-permissions#reprompt a reprompt should be shown. This reprompt should explain why the email permission is needed
The text was updated successfully, but these errors were encountered: