I want users to authenticate themselves both with facebook and application accounts. I have managed to verify their fb account and store email, id and username information into another table.
Application users can login with:
Yii::app()->user->login($this->_identity,$duration);
The identity check if the user and password are correct against the database.
But, how can i change this behavior when users login in through their facebook account, so that i can have access to the Yii::app()->user->id globally.
Why not try the extension like facebook-connect with facebook identity class already implemented.