SimpleSocialAuth icon indicating copy to clipboard operation
SimpleSocialAuth copied to clipboard

Google Picture Url

Open benfoster opened this issue 13 years ago • 1 comments

As per http://code.google.com/apis/accounts/docs/OAuth2Login.html#userinfocall the "picture" field is not included in the response if a picture does not exist.

The current GoogleHandler will therefore throw if a picture doesn't exist.

    return
      new BasicUserData
      {
        UserId = jsonObject["id"].ToString(),
        UserName = jsonObject["name"].ToString(),
        PictureUrl = jsonObject["picture"].ToString()
      };

benfoster avatar Feb 19 '12 13:02 benfoster

Obviously a bug. I'll fix it asap. Thanks.

rafek avatar Feb 19 '12 14:02 rafek