0

I used GTLQueryPlus.queryForPeopleGetWithUserId("me") for retrieving logged in user information. I am not getting the gender in json. When I set the gender visibility to 'public' instead of 'my circles' from my google plus profile, then I got the gender.

How to get the gender info without changing the settings from googe plus profile settings?

scopes used: signIn.scopes = [kGTLAuthScopePlusMe, kGTLAuthScopePlusUserinfoProfile, kGTLAuthScopePlusLogin];

abraham
  • 46,583
  • 10
  • 100
  • 152
Sumit Jain
  • 146
  • 1
  • 9

1 Answers1

1

You can only access what a user has set to public. If the user doesn't want this information public then you cant have the information.

Just because I authenticate your application doesn't mean that I want you to for example to see my address or in this case my gender. So I don't set them public you cant see them.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449