title: How to get email from facebook through Guzzle in laravel?
body: <p>I am using below code to login via facebook in laravel. </p>
  
  <p>Referring <a href="https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps" rel="nofollow">https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps</a> for token based authentication and using <a href="https://github.com/sahat/satellizer" rel="nofollow">https://github.com/sahat/satellizer</a> for social media integration. </p>
  
  <pre><code>$params = [
          'code' =&gt; $request-&gt;input('code'),
          'client_id' =&gt; $request-&gt;input('clientId'),
          'redirect_uri' =&gt; $request-&gt;input('redirectUri'),
          'client_secret' =&gt; 'XXXXXXXXXXXXXXXXXXX'
          /*'client_secret' =&gt; Config::get('app.facebook_secret')*/
      ];
  
      // Step 1. Exchange authorization code for access token.
      $accessTokenResponse = $client-&gt;request('GET', 'https://graph.facebook.com/v2.5/oauth/access_token', [
          'query' =&gt; $params
      ]);
      $accessToken = json_decode($accessTokenResponse-&gt;getBody(), true);
  
      // Step 2. Retrieve profile information about the current user.
      $profileResponse = $client-&gt;request('GET', 'https://graph.facebook.com/v2.5/me', [
          'query' =&gt; $accessToken
      ]);
      $profile = json_decode($profileResponse-&gt;getBody(), true);
  </code></pre>
  
  <p>$profile returning only fb id and user name.
  What changes should I do to get email from facebook. </p>