问题
AppEngine has Users service to access Google account information. Unfortunately, it doesn't provide access to the Google account's many properties, specifically name and profile picture. Could anyone advise a proper way of retrieving that information?
回答1:
The Users API does not provide any way to access anything other than the user's email address. Any other information has to be accessed independently, using APIs such as the Google Profiles API.
回答2:
Google Profiles API would not work for default Google (gmail) Accounts, unfortunately.
http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=1925
If you want to get access to name and email, I believe, you could use attribute exchange (AX) with Google's OpenID. You can even combine OpenID with OAuth. I'm not sure, however, if you can get access to picture URL.
来源:https://stackoverflow.com/questions/7353505/access-to-users-name-and-profile-picture-in-the-appengines-app