Search code examples
google-plusgoogle-oauthcover

Get Google Plus cover URL by user_id


Is there a way to get the profile picture for a google+ account by using an URL ?

I know that we can get the photo by doing something like: https://plus.google.com/s2/photos/profile/1234567890?sz=200 and I need something similar to get the profile cover photo.


Solution

  • It depends on the URL you have, if you have the user's Google+ ID, you can then retrieve their profile, which contains a link to their profile. An example:

    Api Explorer Demo of Retrieving a Cover Photo

    Set the fields value to cover/coverPhoto/url if it's not getting added automatically.