CakePHP-Facebook-Plugin
CakePHP-Facebook-Plugin copied to clipboard
Facebooks users information only show after second acess
I'm using cakephp 2.0
step to procedure :
$this->Connect->authUser['User']['name'] = $this->Connect->user('name');
return true; //Must return true or will not save.
`````` }
Erase cookies and the user in the table ...
Try to acess your application , the name in table will be null.
Refresh the page and the name will be update.
I fix it puting this lines in Initialize (and remove startup method)
```if (!$this->noAuth && !empty($this->uid)) {
$this->__syncFacebookUser();
```}