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

13 lines
344 B
JavaScript
Raw Normal View History

2013-05-23 07:00:14 +00:00
// Check the result of the user status and display login button if necessary
function checkLoginStatus(response) {
if (response && response.status == "connected") {
2013-05-27 12:10:41 +00:00
window.parent.location.href = $(".btn-facebook").attr('href');
2013-05-23 07:00:14 +00:00
} else if (response && response.status === "not_authorized") {
return false;
} else {
return false;
}
}