CodeIgniter Forums
Code Igniter 3 and Facebook API - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Code Igniter 3 and Facebook API (/thread-1611.html)



Code Igniter 3 and Facebook API - grinninglich - 03-25-2015

Hello,

I am completely new to the Facebook API. I am trying to include FacebookSession class in to the Code Igniter 3 controller as told here:

https://developers.facebook.com/docs/php/gettingstarted/4.0.0

I included the file "FacebookSession.php" outside the class definition and trying to call FacebookSession:ConfusedetDefaultApplication('YOUR_APP_ID', 'YOUR_APP_SECRET'); inside the construct function. But i get:
"FacebookSession' not found in line..." error.

How can i make FB work with Code Igniter 3?


RE: Code Igniter 3 and Facebook API - mwhitney - 03-25-2015

Their GitHub page ( https://github.com/facebook/facebook-php-sdk-v4 ) has a "Minimal example" for using the SDK without Composer.