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 @
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()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.