//file test.php
require_once 'config.php';
if($fb->get_loggedin_user())
{
// step1 do something
//step2 expire session
}
else
{
//FB coonect login button
}
I need to expire session after i am done with the step1 in the above code. But $facebook->get_loggedin_user() always returns a user id and never goes into else part.
I tried $fb->clear_cookie_state(); $fb->api_client->user=0; $fb->api_client->session_key=null; $fb->logout('index.php');
Nothing is seems to be working. please help. How can i make him log out??