title: Get Facebook User Data Javascript API
body: <p>For some reason I can't get the user data even though I'm pretty sure my code is correct. The object isn't returning certain values (like: link, birthday, hometown, etc). Here's what I have:</p>
  
  <pre><code>$(function () {
          FB.getLoginStatus(function(response) {
              if (response.status === 'connected') {
                basicAPIRequest();
              }
            });
      });
  
  function basicAPIRequest() {
      FB.api('/me', 
          {fields: "id,about,age_range,picture,bio,birthday,context,email,first_name,gender,hometown,link,location,middle_name,name,timezone,website,work"}, 
          function(response) {
            console.log('API response', response);
            $("#fb-profile-picture").append('&lt;img src="' + response.picture.data.url + '"&gt; ');
            $("#name").append(response.name);
            $("#user-id").append(response.id);
            $("#work").append(response.gender);
            $("#birthday").append(response.birthday);
            $("#education").append(response.hometown);
          }
      );
    }
  </code></pre>