facebook apps with yii development

Hi there,

I just started development on making facebook application with yii but I came across this error. I not too sure how to solve.

iiBase::include(PEAR_Error.php) [<a href=‘function.YiiBase-include’>function.YiiBase-include</a>]: failed to open stream: No such file or directory

Hope that anyone can advise. I have php pear installed already on the server.

Thanks.

I have solved this issue already.

Just to share, it is caused by PHP 5.1

Facebook platform required PHP 5.2

cheers.

Because Yii can not file include file. You have to set correct include path.

For example : Yii::import(‘application.extensions.facebook.Facebook’);

Note : You have to active Curl extension for xampp when use facebook and opengraph