window.fbAsyncInit = function() {
FB.init({
  appId  : '204418109570080',
  status : true, // check login status
  cookie : true, // enable cookies to allow the server to access the session
  xfbml  : true  // parse XFBML
});
FB.Event.subscribe('auth.login', function(response) {
	document.location.href = 'http://www.myschoolhelp.com/facebook_login.php';
});
FB.Event.subscribe('auth.logout', function(response) {
});
};

(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());

