How do I get the @user from firebase user from Twitter

后端 未结 1 2041
梦毁少年i
梦毁少年i 2021-01-26 09:39

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

相关标签:
1条回答
  • 2021-01-26 09:47

    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().

    0 讨论(0)
提交回复
热议问题