Google account: Can retrieve the picture from openid? Can I get it with OAuth to google?

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-12-26T02:36:27Z Indexed on 2010/12/26 2:54 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

Hi!

I need to retrieve the name, email and picture from a google account.
I am already using the openid to make the user login with it's google acc.

Can I have the picture URL from the openid proccess?

with OAuth I cant'seem to find the right scope to retrieve this information... See this link:
http://code.google.com/apis/gdata/docs/directory.html

there is a list of scopes that you can fetch with REST api to google and I didnt't see the one related to the profile.

Btw, I am using PHP and the openid is already working, but didn't start with the oauth untill I know if I can(and need) retrieve the picture (because email and name already comes within the openid proccess)

thanks,
Joe

© Stack Overflow or respective owner

Related posts about php

Related posts about rest