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-27 22:10:41 +10:00

13 lines
344 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 = $(".btn-facebook").attr('href');
} else if (response && response.status === "not_authorized") {
return false;
} else {
return false;
}
}