webtechnick/CakePHP-Facebook-Plugin — Issue #54: CakePHP 2.0 Redirect after login does not work
Author: andreirebe
Created: 2012-02-23 20:46:48+00:00
State: open

## Method I

``` function afterFacebookLogin(){
$this->redirect(array('controller' => 'pages', 'action' => 'home'));
}
```
My afterFacebookLogin() function it only works after I reload the page from where I logged in or go to another page.

## Method II
I also tried to enable 'redirect' => true in FacebookHelper.php. The problem is that when it is set to true it dissapears.

What can I do in this case?