获取具有firebase id的google个人资料图像

获取具有firebase id的google个人资料图像,firebase,google-api,firebase-authentication,google-authentication,Firebase,Google Api,Firebase Authentication,Google Authentication,我一直在使用firebase进行登录,它会返回firebase的uid,正如我看到的那样,无法请求获取google id 我知道firebase帐户与Google帐户不同,但我的问题是:有一种可能的方法,我可以使用firebase帐户uid获取Google个人资料图像,而无需将登录方法更改为使用Google+登录 这是获取谷歌个人资料照片的URL:。 你可以用 admin.auth().getUser(uid).then(function(profile){...}) 拥有该帐户后,您应该能够

我一直在使用firebase进行登录,它会返回firebase的uid,正如我看到的那样,无法请求获取google id

我知道firebase帐户与Google帐户不同,但我的问题是:有一种可能的方法,我可以使用firebase帐户uid获取Google个人资料图像,而无需将登录方法更改为使用Google+登录


这是获取谷歌个人资料照片的URL:。 你可以用

admin.auth().getUser(uid).then(function(profile){...})
拥有该帐户后,您应该能够使用firebase属性访问其配置文件,在您的情况下,使用photoURL属性。 希望这有帮助