CakePHP-Facebook-Plugin
CakePHP-Facebook-Plugin copied to clipboard
Avoid exception
On ConnectComponent, add User->exists validation:
if ($this->User->exists()) { if (!$this->User->field('facebook_id')) { $this->User->saveField('facebook_id', $this->uid); } }
It avoids exceptions in case the user has been deleted from DB but still authenticated by session.