CakePHP-Facebook-Plugin icon indicating copy to clipboard operation
CakePHP-Facebook-Plugin copied to clipboard

Facebooks users information only show after second acess

Open guitcastro opened this issue 13 years ago • 0 comments

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();
```}

guitcastro avatar Feb 09 '12 22:02 guitcastro