I'm writing a web app that uses facebook's PHP SDK. I'm using the getUser() method to authenticate users similar to this:
$user = $this->facebook->getUser();
$loginUrl = $this->facebook->getLoginUrl(array(
'scope' => 'email,publish_stream',
'redirect_uri' => base_url() . 'index.php/welcome/create'
));;
if(!$user){
/*
* User not authenticated, present with facebook authorize dialog
* */
echo "<script type='text/javascript'>window.location = '$loginUrl';</script>";
die();
What I don't understand is why getUser() continues to return my facebook uid even after I've removed the app from my facbeook privacy settings in facebook. Anyone know why?