I am working on login system where user is logged to website using google plus api . I am hitting "me" endpoint after token verification .But I am facing a problem in some cases where I don't get the displayName/Name object of the user . scopes used : plus.profile and plus.login Endpint hit : "me"
$service=new Google_Service_Plus($client);
$userinfo=$service->people->get('me');
I want to fetch the username of the user .