Stewie Griffin
Stewie Griffin

Reputation: 9327

Facebook Javascript SDK response properties

Is there a list with all the properties I can ask using response after user was authenticated? like response.name, response.last_name and other? I would like to see a full list..

Upvotes: 4

Views: 2474

Answers (2)

Eddy Chan
Eddy Chan

Reputation: 1161

A full response object for you case should look like this:

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

Upvotes: -2

Joe W
Joe W

Reputation: 1008

Include the line:

console.log(response);

in your Javascript. Then load up Firebug in your favourite modern browser and go to the console tab. You should be able to view the response as an object.

Upvotes: 4

Related Questions