Med
(Programmeur4 You)
1
Hello all,
i used extention of facebook connect : http://www.yiiframework.com/extension/facebook-connect/
but when i login i get the information of session :
Array
(
[session_key] =>
[uid] =>
[expires] =>
[secret] =>
[base_domain] =>
[access_token] =>
[sig] =>
)
[b]But i need to redirect to my site when connect with facebook not get the information of session
I need to your help[/b]
Thanks for all.
Med
(Programmeur4 You)
2
I add this function in SiteController :
protected $_identity;
public $_logouturl;
public function actionFblogin(){
if($this->_identity===null)
{
$this->_identity=new FBIdentity($_GET['username'],$_GET['userid']);
$this->_identity->authenticate();
$this->_logouturl = $_GET['logout'];
$error = 0;
if($error===FBIdentity::ERROR_NONE){
$duration=3600*24*30;
Yii::app()->user->login($this->_identity,$duration);
$this->redirect(Yii::app()->homeUrl);
}else{
return false;
}
}
}
But i can’t read result of this function !!!