title: Google Login API on Codeigniter is returning empty userinfo. Any ideas?
body: <p>I have Google Login working on my site, using <a href="https://github.com/philsturgeon/codeigniter-oauth2" rel="nofollow">codeigniter-oauth2</a> except that in the last step, all I receive is: </p>
  
  <ul>
  <li><p>access_token</p></li>
  <li><p>expires</p></li>
  </ul>
  
  <p>And nothing else!</p>
  
  <p>Here's where I'm requesting the data:</p>
  
  <p><code>$url = 'https://www.googleapis.com/oauth2/v1/userinfo?alt=json&amp;' .</code>
  <code>http_build_query(array('access_token' =&gt; $token-&gt;access_token,));</code></p>
  
  <p>It does the full loop, but when I check out:</p>
  
  <p><code>file_get_contents($url)</code> I get nothing!</p>
  
  <p>These are my scopes:</p>
  
  <ul>
  <li><code>https://www.googleapis.com/auth/userinfo.profile</code></li>
  <li><code>https://www.googleapis.com/auth/userinfo.email</code></li>
  <li><code>https://www.googleapis.com/auth/plus.profile.emails.read</code></li>
  </ul>
  
  <p>Am I missing a scope? Or am I requesting the information incorrectly?</p>
  
  <p>Also, I'm using <code>v1</code>, should I be using <code>v2</code> instead?</p>