So taking a look at the API doc page here:
http://developers.facebook.com/docs/reference/javascript/FB.api
I'm wondering if the response received back is an HttpResponse or a JSON object. They say that they return a JSON object in the response.
So since they are performing things such as response.name, etc. does it mean we don't need to parse the JSON object? I don't get it. I was going to use the jQuery parseJSON to parse the returned JSON object so I could traverse through it and grab the data.
UPDATED:
Ok well here's my actual code:
var uri = "/" + userID + "/albums";
FB.api(uri, function (response) {
// check for a valid response
if (!response || response.error)
{
alert("error occured");
return;
}
alert("console.log(response): " + console.log(response));
alert("response: " + response[0].length);
});
the uri being passed in is this: /1637262814/albums