Codeigniter and Facebook PHP SDK - error posting to user wall
The error you see is from the call to $this->load->library('facebook')
, you should pass the $config array as a parameter to it and access the library from the CI object, like this:
$config = array( 'appId' => '123123123123', 'secret' => '567567567567');$CI->load->library('facebook', $config);$user_id = $CI->facebook->getUser();
Read more about the loader here: