1
我使用此代码来实现与我的网站在谷歌登录。使用谷歌登录更大的个人资料图片
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail());
}
</script>
但我在控制台中得到小配置文件图片。我怎样才能从谷歌最大的个人资料图片获取网址?
基本上回答了它的工作,但我认为该决议不与规模日益扩大。 –
这是因为谷歌API不会给你大的形象:( –
任何解决方案,以获得大的形象? –