title: Get user email from facebook connect with SDK java script in v2.8
body: <p>I can not retrieve the facebook e-mail address of a person who connects with the facebook login button. I use JDK java script in 2.8 version</p>
  
  <pre><code>&lt;fb:login-button scope="public_profile,email" onlogin="checkLoginState();" auto_logout_link="true"&gt;&lt;/fb:login-button&gt;
  
  &lt;script&gt;
      window.fbAsyncInit = function() {
          FB.init({
              appId      : '&lt;appId&gt;',
              xfbml      : true,
              version    : 'v2.8'
          });
          FB.AppEvents.logPageView();
      };
  
      (function(d, s, id){
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) {return;}
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_FR/sdk.js";
          fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
  
      function checkLoginState() {
          FB.getLoginStatus(function(response) {
              //console.log('Check login state');
              //console.log(response);
              statusChangeCallback(response);
          });
      }
  
      function statusChangeCallback(response) {
  
          if (response.status === 'connected') {
              console.log('Connected');
              testAPI();
          } else if (response.status === 'not_authorized') {
              console.log('Please log into this app');
          } else {
              console.log('Please log into Facebook.');
          }
      }
  
      function testAPI() {
          FB.login(function(response) {
              if (response.authResponse) {
                  var access_token = response.authResponse.accessToken;
                  FB.api(
                      '/me',
                      {fields: 'id,email,cover,name,first_name,last_name,age_range,link,gender,locale,picture,timezone,updated_time,verified'},
                      function (response) {
                          console.log('response');
                          console.log(response);
                      }
                  );
              } else {
                  console.log('User cancelled login or did not fully authorize.');
              }
          },{scope:'email'});        
      }
  
      function testLogout() {
          FB.logout(function(response) {
              console.log(response);
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I have all the information except the email. Can you help me please ? </p>