title: Use facebook's php SDK to retrieve email
body: <p>So far i have it set up to retrieve basic user info, nothing extended. Im trying to get the user email as well, with no success. Here's what i got:</p>
  
  <pre><code>   $facebook = new Facebook(array(
              'appId' =&gt; APP_ID,
              'secret' =&gt; APP_SECRET,
              'cookie' =&gt; true,
  
          ));
  
  $session = $facebook-&gt;getSession();
  
  if (!empty($session)) {
      try {
      $params = array(
        'scope' =&gt; 'email',
        'redirect_uri' =&gt; 'https://www.dormduels/splash_test'
      );
  
      $loginUrl = $facebook-&gt;getLoginUrl($params);
          $uid = $facebook-&gt;getUser();
  
           $access_token = $facebook-&gt;getAccessToken();
  
          echo $access_token;
          $user = $facebook-&gt;api('me?fields=name,first_name,last_name,username,email&amp;access_token='.$access_token);
          echo "&lt;pre&gt;";
          print_r($user);
          exit();
  </code></pre>
  
  <p>The problem is. the getAccessToken that its displaying, when tested in facebooks graph explorer, doesnt show extended data like email, only basic. How do i request a more permission enabled acces token?</p>