title: Facebook Javascript SDK: Processing Response from Facebook
body: <p>I'm having  trouble understanding how to process the response when you make an API call to facebook.  Should mention that I'm new to javascript.</p>
  
  <p>Say I want to get the mutual friends between me and some user, and then write it to a text box.  I took a shot and ended up with this ...which failed. I'm pretty sure it's because I didn't parse the response, but I can't figure out how. I've seen something like <code>query.wait(function(rows){</code> for FQL queries ... but I don't know what that means..so I skipped it.</p>
  
  <pre><code>function getMutual(){
  
      FB.api('/me/mutualfriends/'+target, function(response) {
  
              document.getElementById('debug').innerHTML =
              'FQL Information: '+  response +"&lt;br /&gt;";
      });
  }
  </code></pre>