kklw
kklw

Reputation: 888

Access google+ user profile photo

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

Answers (3)

TheDean
TheDean

Reputation: 285

follow the link

Use Resource image.url you will get your answer

Upvotes: 0

David Glazer
David Glazer

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

Related Questions