Created
January 28, 2013 23:03
-
-
Save KDawg/4660125 to your computer and use it in GitHub Desktop.
Facebook JS SDK /me service response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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