Skip to content

Commit

Permalink
Call Facebook SDK and initialize app upon loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelester committed Mar 10, 2013
1 parent d4d43e9 commit cbd828f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions static/js/social-media.js
Expand Up @@ -55,3 +55,20 @@ var SocialMedia = function() {};
}
};
}());

window.fbAsyncInit = function() {
FB.init({
appId : '268806889891263',
status : true,
cookie : true,
xfbml : true
});
};

// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));

0 comments on commit cbd828f

Please sign in to comment.