getLoginUrl(array( 'redirect_uri' => $siteConfig['sitePath'] . 'signin.php' )); $logoutURL = $facebook->getLogoutUrl(array( 'next' => $siteConfig['sitePath'] . 'logout.php' )); if (isset($_GET["action"]) && $_GET["action"] == "logout") { unset($_SESSION["fb_" . $config["appId"] . "_access_token"]); } ?>