title: FB.api Response Is Undefined
body: <p>I'm developing a website which integrates with a facebook account to display the notes from the facebook account on the website. However after calling the FB.api method the response I receive is undefined and I am unable to access the data in 'response.data'.</p>
  
  <p></p>
  
  <p></p>
  
  <p>Test</p>
  
  <p></p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
      &lt;script&gt;
  
      window.fbAsyncInit =    function() 
                              {
  
                                  FB.init({appId: '12345678', status: true, cookie: true, xfbml: true});
  
                                  FB.api  (
                                              '/pagename/notes',  
                                              function(response) 
                                              {
  
                                                  alert(response.data.length);
  
                                              }
  
                                          );
  
                              };
  
      &lt;/script&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Has anyone any idea where I'm going wrong? Any help would be much appreciated.</p>
  
  <p>Thanks.</p>