function fb_connect_exit in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_connect.module \fb_connect_exit()
Here we attempt to log the user out of facebook connect, not just Drupal. If we fail, the user will be reconnected right away, because connect cookies are still in place.
File
- ./
fb_connect.module, line 333 - Support for Facebook Connect features
Code
function fb_connect_exit($url = NULL) {
if (isset($GLOBALS['fb_connect_logging_out'])) {
global $_fb;
session_write_close();
// drupal_goto calls this, so why not us?
if (!isset($url)) {
$url = url('<front>', array(
'absolute' => TRUE,
));
}
$_fb
->logout($url);
}
}