title: Missing required parameter: scope (Google SIgn in Using PHP)
body: <p>I started coding for registration page with social accounts.
  I tried facebook its successful working.
  When i try google sign its showing me this error.</p>
  
  <pre><code>400. That’s an error.
  
  Error: invalid_request
  
  Missing required parameter: scope
  
  Learn more
  
  Request Details
  response_type=code
  redirect_uri=http://localhost/school/g.php
  client_id=80808106457-e2fmm4s2dhqc5eo94nv2l84thjn6hqvl.apps.googleusercontent.com
  scope=
  access_type=offline
  approval_prompt=force
  </code></pre>
  
  <p>Someone please help me.This is my php code</p>
  
  <pre><code>&lt;?php
  session_start();
  
  // Include Google client library
  include_once 'src/Google_Client.php';
  include_once 'src/auth/Google_OAuth2.php';
  /*
   * Configuration and setup Google API
   */
  $clientId     = 'XXXXXXXXXXXXXXXXXXXXXX';
  $clientSecret = 'XXXXXXXXXXXXXXXX';
  $redirectURL  = 'http://localhost/school/g.php';
  
  //Call Google API
  $gClient = new Google_Client();
  $gClient-&gt;setApplicationName('school');
  $gClient-&gt;setAccessType("offline");
  $gClient-&gt;setClientId($clientId);
  $gClient-&gt;setClientSecret($clientSecret);
  $gClient-&gt;setRedirectUri($redirectURL);
  
  $google_oauthV2 = new Google_OAuth2($gClient);
  ?&gt;
  </code></pre>