Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 950439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:33:53+00:00 2026-05-15T23:33:53+00:00

So taking a look at the API doc page here: http://developers.facebook.com/docs/reference/javascript/FB.api I’m wondering if

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:33:53+00:00Added an answer on May 15, 2026 at 11:33 pm

    You get a JavaScript value back. Graph API always returns an object, but some old methods return numbers or booleans. Usually this is an object like { name: 'My Name', id: 1234 }. Easiest to run this in firebug: FB.api('/me', function(r) { console.log(r) }) as it will let you explore the response. You can also take a look at this example: http://fbrell.com/fb.api/user-info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm taking a look at some random Icecast playlists (available here: http://dir.xiph.org/index.php ) and
I was taking a look at http://www.zenfolio.com/zf/features.aspx and I can't figure out how they
Taking a look at my question HERE , I now want to return the
I was taking a look at the nook developer site on barnesandnoble.com and noticed
After reading (nearly) the whole ebook and taking a look at the API i
I am taking a look at GIMP's Curves Tool, and is wondering the procedure
When I look at the NSFileHandle API docs, I see there are a lot
I've been taking a look at Apache Pivot and I'm wondering whether it is
Thanks for taking a look: Here is the php I'm using to insert the
After taking a look at this SO question and doing my own research, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.