我在我的应用程序中使用以下插件来让 facebook connect 与 auth 一起工作。
https://github.com/webtechnick/CakePHP-Facebook-Plugin
问题是我想手动将用户数据保存到用户表中。
所以我正在尝试这样
public function beforeFacebookSave(){
//$this->Auth->autoRedirect = false;
debug($this->Connect->user('email'));
$this->Connect->authUser['User']['email'] = $this->Connect->user('email');
$this->Connect->authUser['User']['username'] = $this->Connect->user('username');
//Must return true or will not save.
$this->redirect(array('controller' => 'users', 'action' => 'beforefbsave', '?' => array('param1' => $this->Connect->user('email'))));
//return true;
}
重定向进入循环并出现错误
The page isn't redirecting properly
这是正确的方法还是遵循其他方法来完成这项工作?