Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the Avatar from Google?

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?

like image 885
Oliver Avatar asked Aug 28 '10 15:08

Oliver


People also ask

Where is my profile picture?

Tap in the top right of Facebook, then tap your name. Tap Photos. Scroll down and tap Profile Pictures or Cover Photos.


1 Answers

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

  • http://axschema.org/contact/country/home
  • http://axschema.org/contact/email
  • http://axschema.org/namePerson/first
  • http://axschema.org/pref/language
  • http://axschema.org/namePerson/last

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

like image 173
Mewp Avatar answered Sep 28 '22 09:09

Mewp