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

萝らか妹 提交于 2020-01-30 10:52:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!