问题
I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @ Any ideas?
I have tried this
FirebaseAuth.getInstance().getCurrentUser().getDisplayName()
But it doesnt give me the @
回答1:
This information is available in AdditionalUserInfo.getUsername(), which you can get from the AuthResult
when the user signs in.
It is not available from FirebaseAuth.getInstance().getCurrentUser()
.
来源:https://stackoverflow.com/questions/59939574/how-do-i-get-the-user-from-firebase-user-from-twitter