Skip to content

Instantly share code, notes, and snippets.

@anthonycintron
Created December 5, 2010 20:16
Show Gist options
  • Save anthonycintron/729423 to your computer and use it in GitHub Desktop.
Save anthonycintron/729423 to your computer and use it in GitHub Desktop.
checkIn: function(uid) {
FB.api('/me/checkins', function (response) {
AVFacebook.session = response.data;
checkin_len = response.data.length;
var checkins = [];
for ( var i=0; i < checkin_len; i++ ) {
checkins.push({'checkin':response.data[i]});
}
$.ajax({
url: "/postcheckin",
data: {checkins:checkins},
type: "POST",
success: function(html) {
// alert("success! = " + html);
}
}); //close $.ajax
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment