title: facebook get user mail via Facebook javascript SDK
body: <p>How to retrieve  user mail id(using Fb javascript sdk) who is logged into fb , I did refer <a href="https://stackoverflow.com/questions/7820485/how-to-get-email-id-of-facebook-user-using-javascript-sdk">here</a> but still i get <strong>result as undefined</strong>  and here is my code :</p>
  
  <pre><code>    FB.getLoginStatus(function(response) 
      if (response.status === 'connected') {
      FB.api('/me', function(response) {
  
                   alert('Your mail is ' + response.email);
  
  
                  },{scope:'email'});}
  );
  </code></pre>
  
  <p>Please let me know where i am wrong ?</p>