summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Cohen2011-05-25 20:29:11 (GMT)
committer Dave Cohen2011-05-25 20:29:11 (GMT)
commitb66161d775e2759052614639843c8ca553442ddf (patch)
tree29dbc27461fb116e360a713368991aa7c6d11153
parent56ab197ddbcc097b763145352e44ea944ad46456 (diff)
#1164048 by loze, Dave Cohen: fixes a case where logout link will no log you out.
-rw-r--r--fb_connect.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/fb_connect.js b/fb_connect.js
index 0dbd5dd..f26eb7b 100644
--- a/fb_connect.js
+++ b/fb_connect.js
@@ -51,12 +51,17 @@ FB_Connect.sessionChangeHandler = function(context, status) {
FB_Connect.logoutHandler = function(event) {
if (typeof(FB) != 'undefined') {
FB.logout(function () {
+ // Logged out of facebook. Need we act on this?
});
// Facebook's invalid cookies persist if third-party cookies disabled.
// Let's try to clean up the mess.
FB_JS.deleteCookie('fbs_' + FB._apiKey, '/', ''); // app id
FB_JS.deleteCookie('fbs_' + Drupal.settings.fb.apikey, '/', ''); // apikey
}
+ if (FB.getSession()) {
+ // Facebook needs more time to log us out. (http://drupal.org/node/1164048)
+ return false;
+ }
};
/**