Hello I am using latest facebook php sdk for my app. I am getting issue with its logout. here is my code for logout.
<?php
$logout = $facebook->getLogoutUrl(array(
'next' => 'https://www.thevoucherlink.com/logout.php'));
?>
And this is my logout.php:
<?php
session_start();
unset($_SESSION['fb_uid']);
session_destroy();
header('location:https://www.thevoucherlink.com/index.php?ref=logout');
?>
After log out user log outs from facebook. But not from my app.
$user_id=$facebook->getUser();
This function returns the user id after log out.
Please help me to solve it. Thanks in advance.