how CodeIgniter Facebook SDK 4 with Composer
I’m trying to install and run the Facebook SDK on CodeIgniter using Composer.
CodeIgniter is installed and working nicely.
Composer support was added by doing the following:
All went to plan. Composer created a
I then added Composer support to CodeIgniter by adding the line
No errors at this point.
I’m now looking to call the SDK. I don’t seem to be able to use any of the Facebook classes though. See below for things tried and failed…
And a more full example:
You’ve mixed the position of the USE statement.
Your code becomes: