Problems importing facebook client library |
[eluser]igniteflow[/eluser]
Hi all, I'm trying to import the facebook library to use in an application. I have put the following very basic code in my controller constructor: Code: class Home extends Controller { which when run i get the following errors Code: A PHP Error was encountered However, this code works fine in plain PHP when I just write Code: require_once('facebook-client/facebook.php'); can anyone tell me what I'm doing wrong here?
[eluser]igniteflow[/eluser]
Solved it, by putting Code: /* in config.php. I doubt this is the most efficient way of including a class in CI though, and would like to hear the best way to do it... ps. the above method was posted by phil at stackflow
[eluser]Unknown[/eluser]
I'm still have that problem. I've put this code in the config.php, but doesn't worked. [quote author="igniteflow" date="1267726301"] Code: /* And then, these messages started to show. Code: A PHP Error was encountered Somebody know how can I resolve that? |
Welcome Guest, Not a member yet? Register Sign In |