Yii-Facebook-Opengraph Like Button Error

I did exactly follow the instructions here

But when I click like button, then the error appears. The error code is: 1404009. While sharing still works fine.

Here is the code:

In main.php :



'class' => 'ext.yii-facebook-opengraph.SFacebook',


'secret'=>'...', ),),

In SiteController.php

protected function afterRender($view, &$output) {




return true; }

In View:

<?php $this->widget('ext.yii-facebook-opengraph.plugins.LikeButton', array(

//'href' => '...',


'send' => TRUE )); ?>

Please help me. Thank you very much.

Sorry for my bad english.

Update: I discovered that when I logout Facebook before like the errors will not appear.So, I think one should insert code log out of facebook before like. Can someone help me?