Use The Facebook Php Sdk 4 With Yii

How to configure php sdk 4 with yii

i pasted phpsdk Facebook folder in component and calling with main.php



but when i am calling with Controller then it show FacebookSession is not found

Please use this extension

I think may be some help