Im using the PHP SDK, and after a lot of frustration, I decided to ask the question here.
So here it goes. I made a login button in this website: http://greek-night.co.uk/
All goes well when you login, but when you try to logout, it always takes me to http://facebook.com/home.php
I have tried everything codewise, and here are some of the examples i tried.
first:
$logoutUrl = $facebook->getLogoutUrl();
Second:
$logoutUrl = $facebook->getLogoutUrl(array('next' => $base_url.'/'));
Third
$logoutparams = array( 'next' => 'http://greek-night.co.uk/' );
$logoutUrl = $facebook->getLogoutUrl($logoutparams);
Am I missing anything? I also tried using the 'Debugger' and got this:
Application ID
212442552170234 : Greek Night
User ID
1112176796 : Michael Schinis
Issued
1328299200 : 12:00 pm Feb 3 2012
Expires
1328302800 : 1:00 pm Feb 3 2012
Valid False
Origin Web
Scopes friends_likes read_stream