For facebook sdk, you just need to copy the files to the .. / application / libraries / folder, and in the controller you can call it anyway:
$config = array('appId' => APP_ID, 'secret' => APP_SECRET); $this->load->library('facebook', $config);
or
create a file called facebook.php in the folder. / application / config and create an array in it
$config = array('appId' => APP_ID, 'secret' => APP_SECRET);
and in the controller just call your library, for example $this->load->library('facebook');
Shayan husaini
source share