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

  • SEARCH
  • Home
  • 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 7597443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:09:29+00:00 2026-05-30T22:09:29+00:00

This is a general question on how to read Facebook’s Javascript API documentation. How

  • 0

This is a general question on how to read Facebook’s Javascript API documentation. How can I get a complete description on the objects that are passed into my callback functions? Take for example FB.Login‘s sparse documentation:

Name  |  Type      | Description
-------------------------------------------
cb    |  Function  | The callback function.

It does not state what is passed into this callback. I’ve been using Firebug to inspect the object that is passed back and making guesses on what each property means. My reverse engineering, along with reading of sample code, is not an efficient way to program. I would like to know where I can find the complete Facebook documentation.

  • 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-30T22:09:30+00:00Added an answer on May 30, 2026 at 10:09 pm

    For the FB.Login() call you asked about, there is this code example:

    FB.login(function(response) {
       if (response.authResponse) {
         console.log('Welcome!  Fetching your information.... ');
         FB.api('/me', function(response) {
           console.log('Good to see you, ' + response.name + '.');
         });
       } else {
         console.log('User cancelled login or did not fully authorize.');
       }
     });
    

    That shows that the callback takes one argument and it’s the login response. The login response appears to be discussed here in the doc for FB.getLoginStatus().

    {
        status: 'connected',
        authResponse: {
            accessToken: '...',
            expiresIn:'...',
            signedRequest:'...',
            userID:'...'
        }
    }
    

    I would agree that the FB doc doesn’t make it clear where to find things like the response object format.

    In answer to your general question, it appears you look for a piece of sample code to see how the callback function is declared and then poke around in related methods until you find the doc for the arguments themselves.

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

Sidebar

Related Questions

This is a general architecture question. I read in many places that in an
This is a general question. And may not be specific to datagrids. How can
This is a general question of sorts, but do you think that it's important
Yes, I know that general forms of this question have been asked time and
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question about MVC as a pattern, but in this case
This is a general question concerning technology decisions for a product development. My aim
This is a general question about character encoding when using MD5 libraries in various
This is a general question. What are some techniques you employ to prevent the
This is a general question, but I'll explain my specific need at the moment:

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.