title: How to read attribute data from the object returned from FB.api?
body: <p>I have the following code implement to catch the event when a user leaves a comment. It is firing correctly, but the problem is I have no idea how to parse the object that is being passed to my callback function.</p>
  
  <pre><code>&lt;script&gt;
      window.fbAsyncInit = function () {
          FB.init({ appId: '&lt;myAppId&gt;', status: true, cookie: true, xfbml: true });
          FB.Event.subscribe('comment.create', function () {
              FB.api('/comments/?ids=http://foo.com', function (response) {
                  console.log(response);
              });
          });
      };
      (function () {
          var e = document.createElement('script'); e.async = true;
          e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
          document.getElementById('fb-root').appendChild(e);
      } ());
  &lt;/script&gt;
  </code></pre>
  
  <p>Looking at the console log in firebug, <code>console.log(response)</code> shows this object:</p>
  
  <pre><code>{
      "http://foo.com": {
         "data": [
            {
               "id": "10150090820621770_15631060",
               "from": {
                  "name": "Test User",
                  "id": "1234455"
               },
               "message": "testing",
               "created_time": "2011-04-18T01:55:38+0000"
            },
            {
               "id": "10150090820621770_15631066",
               "from": {
                  "name": "Test UserToo",
                  "id": "1149043581"
               },
               "message": "testing2",
               "created_time": "2011-04-18T01:56:12+0000"
            }
         ]
      }
   }
  </code></pre>
  
  <p>However, if I try to access the object with <code>response.data[0].from.name</code> I get <code>undefined</code> returned.  Additionally, all the following return <code>undefined</code> also:</p>
  
  <ul>
  <li><code>response.data</code></li>
  <li><code>response.data.length</code></li>
  <li><code>response.data[0]</code></li>
  </ul>
  
  <p>I have no idea how to parse the object to read the attributes. Anyone have any tips?</p>