You are here

function fb_connect_exit in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 6.2 fb_connect.module \fb_connect_exit()

File

./fb_connect.module, line 119
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>', NULL, NULL, TRUE);
    }
    $fb
      ->logout($url);
  }
}