如何从 Google 访问 Avatar?

发布于 2024-09-16 20:18:15 字数 370 浏览 1 评论 0原文

我已经通过 Google 实现了 OpenID-Login。我可以访问以下属性类型“contact/email”、“namePerson/first”、“namePerson/last”和“pref/lang”。但我也想要 Google 帐户图像/头像。关于 http://www.axschema.org/types 的规范,它应该是 'media/ image/default' 或 'media/image/aspect11' 但它们都不起作用:(

是否可以通过 OpenID 访问图像/头像?
AX 类型是其他类型吗?
还有其他可能获得该图像吗?

I've implemented OpenID-Login with Google. I can access the following attribute types 'contact/email', 'namePerson/first', 'namePerson/last' and 'pref/lang'. But I also wanna have the Google Account image/avatar. Concerning to the specs from http://www.axschema.org/types it should be 'media/image/default' or 'media/image/aspect11' but none of them work :(

Isn't it possible to access the image/avatar via OpenID?
Is the AX type something else?
Is there any other possibility to get that image?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我偏爱纯白色 2024-09-23 20:18:15

根据 Google 联合登录页面,Google 仅支持以下 AX 属性:

作为你可以看到,这些都不包含用户的头像。所以据我所知,没有办法得到它。

According to the Google Federated Login page, Google supports only the following AX attributes:

As you can see, none of these contain user's avatar. So as far as I know, there is no way to get it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文