【问题标题】:Display user's photoURL显示用户的 photoURL
【发布时间】:2017-03-02 19:38:29
【问题描述】:
【问题讨论】:
标签:
firebase
firebase-authentication
firebaseui
【解决方案1】:
您必须为您的 Build.Gradle (App Level) 文件添加一个新的依赖项:
compile 'com.github.bumptech.glide:glide:3.7.0'
比创建一个 ImageView。
您现在可以使用 FirebaseUsers PhotoURL 设置 ImageView 的 src:
ImageView iw = find.....
Glide.with(this).load(*).centerCrop().override(512, 512).into(iw);
* Can you replace with the current User (z.B : mFirebaseUser.getPhotoUrl().toString() )
就是这样。
【解决方案2】:
document.getElementById('imgId').src= firebase.auth().currentUser.photoURL;