title: How to Get birthday info when using google+ login
body: <p>I m using google+ login on my website .
  m getting the user info using this syntax -$google_oauthV2->userinfo->get();
  but m not getting the user's birthday. What should i do to get the users birthday and location if possible.
  here's my code:</p>
  
  <p>`    
  
  <pre><code>require_once '../../src/Google_Client.php';
  require_once '../../src/contrib/Google_Oauth2Service.php';
  
  session_start();
  $gClient = new Google_Client();
  $gClient-&gt;setApplicationName('Login');
  $gClient-&gt;setClientId('client_id');
  $gClient-&gt;setClientSecret('secret_key');
  $gClient-&gt;setRedirectUri('redirect_uri');
  $gClient-&gt;setDeveloperKey('developer_key');
  $gClient-&gt;setApprovalPrompt('auto');
  $google_oauthV2 = new Google_Oauth2Service($gClient);
  
  if (isset($_REQUEST['reset'])) 
  {
  unset($_SESSION['token']);
  $gClient-&gt;revokeToken();
  
  header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
  }
  if (isset($_GET['code']))
  {
  $gClient-&gt;authenticate($_GET['code']);
  $_SESSION['token'] = $gClient-&gt;getAccessToken();
  
  header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
  return;
  }
  if (isset($_SESSION['token']))
  {
  $gClient-&gt;setAccessToken($_SESSION['token']);
  }
  if ($gClient-&gt;getAccessToken())
  {
  
  $user                 = $google_oauthV2-&gt;userinfo-&gt;get();
  $user_id              = $user['id'];
  $user_name            = filter_var($user['name'], FILTER_SANITIZE_SPECIAL_CHARS);
  $email                = filter_var($user['email'], FILTER_SANITIZE_EMAIL);
  $profile_url          = filter_var($user['link'], FILTER_VALIDATE_URL);
  $profile_image_url    = filter_var($user['picture'], FILTER_VALIDATE_URL);
  $personMarkup         = "$email&lt;div&gt;&lt;img src='$profile_image_url?sz=50'&gt;&lt;/div&gt;";
  $_SESSION['token']    = $gClient-&gt;getAccessToken();
  }
  else
  {
  //get google login url
  $authUrl = $gClient-&gt;createAuthUrl();
  }
  
  echo '&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;'; 
  echo '&lt;head&gt;';
  echo '&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;';
  echo '&lt;title&gt;Login with Google&lt;/title&gt;'; 
  echo '&lt;/head&gt;';
  echo '&lt;body&gt;';
  echo '&lt;h1&gt;Login with Google&lt;/h1&gt;';
  if(isset($authUrl)) //user is not logged in, show login button
  {
  echo '&lt;a class="login" href="'.$authUrl.'"&gt;Login&lt;/a&gt;';
  }
  else 
  {
  echo '&lt;br /&gt;&lt;a href="'.$profile_url.'" target="_blank"&gt;&lt;img src="'.$profile_image_url.'?sz=50" /&gt;&lt;/a&gt;';
  echo '&lt;br /&gt;&lt;a class="logout" href="?reset=1"&gt;Logout&lt;/a&gt;';
  
  echo '&lt;pre&gt;';
  print_r($user);
  
  echo '&lt;/pre&gt;';
  }
  
  echo '&lt;/body&gt;&lt;/html&gt;';
  ?&gt;`
  </code></pre>