1
0
Fork 0
oldhaven/app/assets/javascripts/social/facebook.js

20 lines
744 B
JavaScript

$(function(){
// window.fbAsyncInit = function() {
// FB.init({
// appId : 'YOUR_APP_ID', // App ID
// channelURL : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
// status : true, // check login status
// cookie : true, // enable cookies to allow the server to access the session
// oauth : true, // enable OAuth 2.0
// xfbml : true // parse XFBML
// });
// };
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});