Skip to content

Instantly share code, notes, and snippets.

@KDawg
Created January 29, 2013 21:46
Show Gist options
  • Save KDawg/4668216 to your computer and use it in GitHub Desktop.
Save KDawg/4668216 to your computer and use it in GitHub Desktop.
Facebook JS SDK /me/checkins service response
// Simply logging into Facebook via their JavaScript SDK:
FB.login(function(response) {
// assuming a valid response executing this FQL:
FB.api('/me/checkins', 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
checkins {
data: [{
application: {
id: "6628568379",
name: "Facebook for iPhone",
namespace: "fbiphone"
},
created_time: "2013-01-18T18:28:12+0000",
from: {
id: "1622858194",
name: "Ken Tabor"
},
id: "4785653372237",
message: "Team lunch!",
place: {
id: "148604468504290",
location: {
city: "Southlake",
country: "United States",
latitude: 32.941567240311,
longitude: -97.116934872986,
state: "TX",
street: "",
zip: ""
},
},
name: "Kincaid's Hamburgers"
},
paging: {
next: "https://graph.facebook.com/1622858194/checkins?access_token=AAAGiqQRrYC0BAEyuZAx5EiCwgeGSDjVDuvZAFbXsnxNCN1jtTxySb0YNCp64sFIXEQrh8G10dfI0FORcvqYEikCGJeqfdcfsPZAEfxO35JkKduYk0ZAL&limit=25&until=1293497010&__paging_token=1638439573859",
previous: "https://graph.facebook.com/1622858194/checkins?access_token=AAAGiqQRrYC0BAEyuZAx5EiCwgeGSDjVDuvZAFbXsnxNCN1jtTxySb0YNCp64sFIXEQrh8G10dfI0FORcvqYEikCGJeqfdcfsPZAEfxO35JkKduYk0ZAL&limit=25&since=1359312270&__paging_token=4840003250950&__previous=1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment