title: Facebook user email extended permissions with new SDK
body: <p>I am currently using the code below in my Codeigniter application to get Facebook data from an app user.</p>
  
  <pre><code>&lt;?php
  
  
   require_once('facebook-php-sdk/src/facebook.php');
  // Create our Application instance (replace this with your appId and secret).
  $facebook= new Facebook(array(
    'appId' =&gt; '2453463636',
        'secret' =&gt; '365653656565656',
        'allowSignedRequest' =&gt; false,
  ));
  
  $_REQUEST += $_GET;
  $user = $facebook-&gt;getUser();
  
  if ($user) {
    try {
      // Get the user profile data you have permission to view
     // $user_profile = $facebook-&gt;api('/me');
      $user_profile = $facebook-&gt;api('/me?fields=picture.width(100).height(100),first_name,last_name,username,email');
      echo $user_profile['email'];
      echo $user_profile['username'];
  
    } catch (FacebookApiException $e) {
      $user = null;
    }
  } else {
    die('&lt;script&gt;top.location.href="'.$facebook-&gt;getLoginUrl().'";&lt;/script&gt;');
  }
  
  ?&gt;
  </code></pre>
  
  <p>This works fine in connecting and returns the <code>username</code>  of the user echoed on the page, however the email does not work. The email returns shows up as an error on the view "Undefined index: email".</p>
  
  <p>I used this very same thing to get the email just a few days ago and it worked, however that was on localhost. It get the email fine on localhost, when pushed to the server, it doesn't recognize <code>email</code>, but it does recognize and get the <code>username</code>.</p>
  
  <p>Why isn't the email being recognized?</p>
  
  <p>I am using the latest version of the sdk: <strong><em>Facebook PHP SDK (v.3.2.3)</em></strong></p>