问题
According to OpenID specification it should be possible http://openid.net/specs/openid-attribute-properties-list-1_0-01.html however there is no mention of it in Google OAuth2 Documentation. Anyone have experience with that?
回答1:
We don't currently offer the phone number as part of our people/get Google+ API.
https://developers.google.com/+/api/latest/people
Visibility of attributes in this api are controlled by the user in G+ profile settings.
The userinfo api is specific to OpenId and probably won't get this field.
https://developers.google.com/accounts/docs/OAuth2Login#userinfocall
It may happen in the future and we're open to requests.
davep
来源:https://stackoverflow.com/questions/13276919/is-it-possible-to-get-phone-number-via-google-oauth2