Open Graph And Facebook Login

Hi guys,

I have spend whole day by thinking and trying to find out, how open graph extension works. I need to do a facebook login to my site and can not make it work. Does anyone knows about any functional example? I managed to get the facebook login button to my site, but when I login, Yii::app()->facebook->getUser() still returns 0. There are no errors in Javascript console. I basically tried this:


$this->widget('ext.yii-facebook-opengraph.plugins.LoginButton', array(

   'show_faces'=>false,

	'width' => '200px',

	'scope' => 'email',

	'text' => 'Login via facebook',

	'on_login' => 'window.location.replace(fbUrl);'

fbUrl is url of controller action which looks like this


public function actionFbLogin(){

		echo Yii::app()->facebook->getUser();

		echo $token = Yii::app()->facebook->getAccessToken();

		

	}

It is not a much, I am only testing it, but it does not work anyway. Could anyone pleas help me, tell me what to do? I do can not find out, how it works and I am really desperate.

Cheers, Kokoseq

Did you properly configured appId and secret ?

yes, i did

Did you solved it? I have the same problem now…

Thank you