Hi All,
I am facing a peculiar behavior in php header function.
The code below works fine,
header("Location: https://www.facebook.com/logout.php?api_key=148814828480550&next=http%3A%2F%2Fmysite.com&session_key=2.HP0X33OURpJRDPfkvWYtAQ__.3600.1285146000-1039666914");
But when I pass URL as variable, it takes me to facebook page but not back to mysite.
$location = $facebook->getLogoutUrl(array('next' => 'mysite.com')); header("Location: $location");
I checked contents of $location, it is same url which is working when given as string.
Please advice.
Thanks