Get Facebook User Email Using Graph API PHP SDK
<p>I'm Using a Graph API of Facebook with php i'm trying to get user information to login user to my site but after a lot of searching and reading i'm getting all my required data expect email.</p>

<pre><code>&lt;?php
include_once('../dashboard/includes/db_connection.php');
// added in v4.0.0
require_once 'autoload.php';
use Facebook\FacebookSession;
use Facebook\FacebookRedirectLoginHelper;
use Facebook\FacebookRequest;
use Facebook\FacebookResponse;
use Facebook\FacebookSDKException;
use Facebook\FacebookRequestException;
use Facebook\FacebookAuthorizationException;
use Facebook\GraphObject;
use Facebook\Entities\AccessToken;
use Facebook\HttpClients\FacebookCurlHttpClient;
use Facebook\HttpClients\FacebookHttpable;
// init app with app id and secret
FacebookSession::setDefaultApplication( '1393606834280204','3faf1ede6ccc48d6adf096f1a6850359' );
// login helper with redirect_uri
$helper = new FacebookRedirectLoginHelper('http://lhefficise.com/facebook/fbconfig.php' );
try {
    $session = $helper-&gt;getSessionFromRedirect();
} catch( FacebookRequestException $ex ) {
  // When Facebook returns an error
} catch( Exception $ex ) {
  // When validation fails or other local issues
}
// see if we have a session
if ( isset( $session ) ) {
    // graph api request for user data
    $request = new FacebookRequest( $session, 'GET', '/me?fields=id,first_name,last_name,name,email' );
    $response = $request-&gt;execute();
    // get response
    $graphObject = $response-&gt;getGraphObject();

    // $fbid = $graphObject-&gt;getProperty('id');              // To Get Facebook ID
    // $fbfullname = $graphObject-&gt;getProperty('name'); // To Get Facebook full name
    // $fbfirstname = $graphObject-&gt;getProperty('name'); // To Get Facebook First Name
    // $fblastname = $graphObject-&gt;getProperty('name'); // To Get Facebook First Name
    // $femail = $graphObject-&gt;getProperty('email');    // To Get Facebook email ID
    $obj = $graphObject-&gt;asArray();
    echo "&lt;pre&gt;";
    print_r($obj);exit;
} else {
    $loginUrl = $helper-&gt;getLoginUrl();
    header("Location: ".$loginUrl);
}
?&gt;
</code></pre>

<p>i'm sending request for  <code>/me?fields=id,first_name,last_name,name,email</code> but i'm not getting email all other information is fine.</p>

<pre><code>Array
(
    [id] =&gt; xxxxxxxxxx83xxxx
    [first_name] =&gt; Shan
    [last_name] =&gt; Khaliq
    [name] =&gt; Shan Khaliq
)
</code></pre>

<p>I might be doing something wrong while getting the record..</p>

<p>I already have permission for email check the link for that.</p>

<p><a href="http://prntscr.com/9steek" rel="nofollow">http://prntscr.com/9steek</a></p>

<p>Thanks in advance.</p>