嗨,我正在尝试使用 facebook graph api 通过 facebook 登录。我正在使用下面的代码来显示登录
<?php $this->widget('ext.yii-facebook-opengraph.plugins.LoginButton', array(
'show_faces'=>true,
'registration_url'=>'http://mysite/index.php/users/facebookregister',
'oauth'=>true, // JS SDK -enable OAuth 2.0
)); ?>
在重定向页面中我正在做
<?php $userinfo = Yii::app()->facebook->getInfo() // gets the Graph info of the current user ?>
but it gives me error
Property "LoginButton.oauth" is not defined.
i am follwing this url to http://www.yiiframework.com/extension/facebook-opengraph/