function facebook_onlogin_ready() {
  refresh_page();
}

function refresh_page() {
  location.href = location.href;
}

function refresh_logout() {
  location.href = settings.baseUrl + '/user/logout';
}
