summaryrefslogtreecommitdiff
path: root/plugins/FBConnect/FBConnectSettings.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-22 00:54:22 +0000
committerZach Copley <zach@controlyourself.ca>2009-05-22 00:54:22 +0000
commiteaf2a98daf2ad135f6daa1bcab391fbee7df3183 (patch)
treeb0a90f340a6f2b85cda5e2f26d3bc6195996a99f /plugins/FBConnect/FBConnectSettings.php
parentf25990cf8ed8683d53e9460fb63600a7bdfd10a3 (diff)
- Show Facebook profile pic and favicon as dictated by Facebook Connnect policy
- Logout fixed, again (cleans up Facebook cookies now)
Diffstat (limited to 'plugins/FBConnect/FBConnectSettings.php')
-rw-r--r--plugins/FBConnect/FBConnectSettings.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/FBConnect/FBConnectSettings.php b/plugins/FBConnect/FBConnectSettings.php
index b7831269c..7e255f43a 100644
--- a/plugins/FBConnect/FBConnectSettings.php
+++ b/plugins/FBConnect/FBConnectSettings.php
@@ -169,8 +169,18 @@ class FBConnectSettingsAction extends ConnectSettingsAction
return;
}
- $facebook = getFacebook();
- $facebook->logout();
+ try {
+
+ // XXX: not sure what exactly to do here
+
+ $facebook = getFacebook();
+ $facebook->clear_cookie_state();
+
+ } catch (Exception $e) {
+ common_log(LOG_WARNING,
+ 'Couldn\'t clear Facebook cookies: ' .
+ $e->getMessage());
+ }
$this->showForm(_('Facebook user disconnected.'), true);