Enabled Fastbook/OAuth login
This commit is contained in:
12
modules/oauth/media/js/facebook.js
Normal file
12
modules/oauth/media/js/facebook.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user