How to access the Avatar from Google?
Asked Answered
G

1

7

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?

Gerladina answered 28/8, 2010 at 15:21 Comment(0)
H
5

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.

Hellman answered 29/8, 2010 at 14:57 Comment(1)
It seems it's still unavailable as of Aug '12, two years layer, but there's always the possibility to find a way to get the Google+ ID: profiles.google.com/s2/photos/profile/[ID]?sz=[Size in pixels] . The ID format is XXXXXXXXXXXXXXXXXXXXX where X are digits, and is visible when checking google+ posts.Concuss

© 2022 - 2024 — McMap. All rights reserved.