jQuery(window).bind('loginChange', 
  function(event, state){
    //This will run if the Facebook login status changes
    //State = 'login','logout'
    //alert(state);
    window.location.href = window.location.href;
  }
);
