I started to create a small application using codeigniter framework and i have dowloaded Facebook connect from github after creating my application inside facebook, at this moment all work alright my only problem is getUser() always return 0
i have create a facebook.php inside application/config/
alse i have extracting facebook.php & base_facebook.php
inside application/libraries/
this is my code
class Welcome extends CI_Controller {
private $data = array();
public function index() {
$this->data['loginUrl'] = $this->facebook->getLoginUrl();
$this->data['userId'] = $this->facebook->getUser();
$this->load->view('welcome_message', $this->data);
}
}
in autoload i have :
$autoload['libraries'] = array('database','session','facebook');
so why getUser()
return 0 and how can i fix this problem
thx
Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: C:\wamp\www\project\application\libraries/fb_ca_chain_bundle.crt CApath: none thrown in C:\wamp\www\project\application\libraries\base_facebook.php on line 967
– Jany Warner Aug 22 '12 at 08:44