title: Facebook php SDK Just display Name and ID
body: <p>I create SDK facebook v2.3 in CI 2, but i just got Name and ID user detail, i need email detail from user login.</p>
  
  <p>Result of print_r is </p>
  
  <blockquote>
    <p>Array ( [name] => Alan El-nino Malmsteen [id] => 1111310922216558 )</p>
  </blockquote>
  
  <p>I have create permission email but still not work</p>
  
  <pre><code>public function FBLogin()
  {
  $this-&gt;load-&gt;library('facebook');
  $login_url = $this-&gt;facebook-&gt;login_url();
  $get_user = $this-&gt;facebook-&gt;get_user();
  if($get_user){ 
      //echo $this-&gt;facebook-&gt;get_email();
      print_r($get_user);
  }else{
     redirect('login_url');
  }
  </code></pre>
  
  <p>And Library Facebook.php</p>
  
  <pre><code>            &lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
          if ( session_status() == PHP_SESSION_NONE ) {
            session_start();
          }
          // Autoload the required files
          require_once( APPPATH . 'libraries/Facebook/autoload.php' );
          require_once( 'Facebook/FacebookSession.php' );
          require_once( 'Facebook/FacebookRedirectLoginHelper.php' );
          require_once( 'Facebook/FacebookRequest.php' );
          require_once( 'Facebook/FacebookResponse.php' );
          require_once( 'Facebook/FacebookSDKException.php' );
          require_once( 'Facebook/FacebookRequestException.php' );
          require_once( 'Facebook/FacebookAuthorizationException.php' );
          require_once( 'Facebook/GraphObject.php' );
          require_once( 'Facebook/GraphSessionInfo.php' );
  
          require_once( 'Facebook/Entities/AccessToken.php' );
          require_once( 'Facebook/Entities/SignedRequest.php' );
  
          require_once( 'Facebook/HttpClients/FacebookHttpable.php' );
          require_once( 'Facebook/HttpClients/FacebookCurl.php' );
          require_once( 'Facebook/HttpClients/FacebookCurlHttpClient.php' );
  
          use Facebook\FacebookRedirectLoginHelper;
          use Facebook\FacebookSession;
          use Facebook\FacebookRequest;
          class Facebook {
            var $ci;
            var $helper;
            var $session;
            var $permissions;
            public function __construct() {
              $this-&gt;ci =&amp; get_instance();
              $this-&gt;permissions = $this-&gt;ci-&gt;config-&gt;item('permissions', 'facebook');
              // Initialize the SDK
              FacebookSession::setDefaultApplication( $this-&gt;ci-&gt;config-&gt;item('api_id', 'facebook'), $this-&gt;ci-&gt;config-&gt;item('app_secret', 'facebook') );
              $this-&gt;helper = new FacebookRedirectLoginHelper( $this-&gt;ci-&gt;config-&gt;item('redirect_url', 'facebook') );
              if ( $this-&gt;ci-&gt;session-&gt;userdata('fb_token') ) {
                $this-&gt;session = new FacebookSession( $this-&gt;ci-&gt;session-&gt;userdata('fb_token') );
                // Validate the access_token to make sure it's still valid
                try {
                  if ( ! $this-&gt;session-&gt;validate() ) {
                    $this-&gt;session = null;
                  }
                } catch ( Exception $e ) {
                  // Catch any exceptions
                  $this-&gt;session = null;
                }
              } else {
                // No session exists
                try {
                  $this-&gt;session = $this-&gt;helper-&gt;getSessionFromRedirect();
                } catch( FacebookRequestException $ex ) {
                  // When Facebook returns an error
                } catch( Exception $ex ) {
                  // When validation fails or other local issues
                }
              }
              if ( $this-&gt;session ) {
                $this-&gt;ci-&gt;session-&gt;set_userdata( 'fb_token', $this-&gt;session-&gt;getToken() );
                $this-&gt;session = new FacebookSession( $this-&gt;session-&gt;getToken() );
              }
            }
            /**
             * Returns the login URL.
             */
            public function login_url() {
              return $this-&gt;helper-&gt;getLoginUrl( $this-&gt;permissions );
            }
            /**
             * Returns the current user's info as an array.
             */
            public function get_user() {
              if ( $this-&gt;session ) {
                /**
                 * Retrieve User’s Profile Information
                 */
                // Graph API to request user data
                $request = ( new FacebookRequest( $this-&gt;session, 'GET', '/me' ) )-&gt;execute();
                // Get response as an array
                $user = $request-&gt;getGraphObject()-&gt;asArray();
                return $user;
              }
              return false;
            }
          }
  </code></pre>