title: Getting Email through Facebook Javascript SDK
body: <p>I'm just starting to play around with the facebook API but I can't seem to get the API to alert my email using the FB.User object. I can get it to print out my userID and my name, but it returns as undefined if I try to print out my email or my education. Here's my code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;
      var appId = '1374555416100192';
      var siteRoot = '';
  
    window.fbAsyncInit = function() {
      FB.init({
        appId      : appId,
        channelURL : '///channel.html', // Channel File
        status     : true,
        cookie     : true,
        oauth      : true,
        xfbml      : true
      });
      $(document).trigger('fbload');
    };
  
  
    (function(d){
       var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
       js = d.createElement('script'); js.id = id; js.async = true;
       js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=" + appId;
       d.getElementsByTagName('head')[0].appendChild(js);
     }(document));
  
  
  
     $(document).on(
      'fbload',  //  &lt;---- HERE'S OUR CUSTOM EVENT BEING LISTENED FOR
      function(){
          //some code that requires the FB object
          //such as...
          FB.getLoginStatus(function(res){
              if( res.status == "connected" ){
                  FB.api('/me', function(fbUser) {
                      alert(fbUser.name  + " "  + fbUser.email);
                  });
              }
          });
  
      }
  );
  &lt;/script&gt;
  
  
  &lt;div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"&gt;Start w/ Facebook&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>