Reputation: 888
I am trying to get the user's g+ profile photo. In javascript, i set my data-scope as follows:
data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.image"
However, the "https://www.googleapis.com/auth/userinfo.image" is an invalid scope.
Upvotes: 0
Views: 2456
Reputation: 11
You actually don't need userinfo.profile
-- plus.login
includes permission to fetch all public info from the user's profile, including their picture. Simply replacing userinfo.image
should do the trick.
All the scopes for Google+ are documented here: https://developers.google.com/+/api/oauth
Upvotes: 1
Reputation: 8189
The scope is https://www.googleapis.com/auth/userinfo.profile
See https://developers.google.com/accounts/docs/OAuth2Login for details.
Upvotes: 0