我在尝试注销facebook连接时收到此错误
错误310(net :: ERR_TOO_MANY_REDIRECTS):太多了 重定向。
function facebook_logout(){
$user = $_SESSION[ 'facebook_userid' ];
$facebook = new Facebook( array(
'appId' => APP_ID,
'secret' => APP_SECRET,
) );
$_SESSION[ 'facebook_userid' ] = "";
$_SESSION[ 'logged' ] = FALSE;
$url = $facebook->getLogoutUrl();
header( "Location: $url" );
}
facebook_logout();