
Emre Sururi - 2014-11-07 12:30:02 -
In reply to message 1 from Emre Sururi
I think I managed to achieve the effect by unsetting $GLOBALS[_SESSION][OAUTH_STATE] & $GLOBALS[_SESSION][OAUTH_ACCESS_TOKEN]
e.g.,
if($_GET[logout])
{
unset($GLOBALS[_SESSION][OAUTH_STATE]);
unset($GLOBALS[_SESSION][OAUTH_ACCESS_TOKEN]);
}
This way, if the user has logged out from Facebook, he is asked to re-login; if he's still logged in to facebook, no effect as the check via the graph succeeds.