Skip to content

Instantly share code, notes, and snippets.

@KDawg
Created January 28, 2013 23:03
Show Gist options
  • Save KDawg/4660125 to your computer and use it in GitHub Desktop.
Save KDawg/4660125 to your computer and use it in GitHub Desktop.
Facebook JS SDK /me service response
// Simply logging into Facebook via their JavaScript SDK:
FB.login(function(response) {
// assuming a valid response executing this FQL:
FB.api('/me', function(response) {
console.log('me', response);
});
}, {scope: 'email,user_status,user_checkins,user_likes,user_interests,user_location,friends_location'});
// these are the contents of service response as a JS object
{
email: "[email protected]"
first_name: "Ken"
gender: "male"
id: "1622858194"
last_name: "Tabor"
link: "https://www.facebook.com/ken.tabor"
locale: "en_US"
location: {
id: "111762725508574"
name: "Dallas, Texas"
}
name: "Ken Tabor"
timezone: -6
updated_time: "2012-12-18T22:42:39+0000"
username: "ken.tabor"
verified: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment