Skip to content

Instantly share code, notes, and snippets.

// User ID
var _id;
// Dependency handlers
var dep = [];
var depDone = (function() {
var i = 0;//# dependencies
return function() {
i += 1;
if(dep.length === i) {//all dependencies are done
// User ID
var _id;
// Facebook ready
window.fbAsyncInit = function() {
FB.init({ appId: 'XXX' });
// Do we have a user?
FB.getLoginStatus(function(response) {
if('connected' === response.status) {
@KellyRice
KellyRice / naive.js
Created January 31, 2012 17:35
Mark code 1
// User ID
var _id;
// Facebook ready
window.fbAsyncInit = function() {
FB.init({ appId: 'XXX' });
// Do we have a user?
FB.getLoginStatus(function(response) {
if('connected' === response.status) {