This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/oauth/media/js/facebook.js
2013-05-23 17:01:28 +10:00

13 lines
340 B
JavaScript

// Check the result of the user status and display login button if necessary
function checkLoginStatus(response) {
if (response && response.status == "connected") {
window.parent.location.href = $(".fb-login").attr('href');
} else if (response && response.status === "not_authorized") {
return false;
} else {
return false;
}
}