[eluser]jdav3579[/eluser]
Hi,
After scouring numerous posts on this subject, I cant seem to get my Facebook application to connect.
In my htaccess:
Code:
#Force PHP5
#remove comments below for live site
#also in config change this $config['index_page'] = "index.php?"; to this $config['index_page'] = "";
AddType x-mapp-php5 .php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|styles|scripts|favicon\.ico|favicon\.png|robots\.txt|sitemap\.xml)
RewriteRule ^(.*)$ index.php?/$1 [L]
My config:
Code:
$config['uri_protocol'] = "AUTO";
$config['enable_query_strings'] = TRUE;
In my application:
Code:
class fb extends MY_Controller {
private $facebook;
function fb(){
parent::MY_controller();
$this->load->helper('facebook/facebook');
$this->facebook = new Facebook(array(
'appId' => 'xxxxx',
'secret' => 'xxxxx'
));
}
function index(){
$session = $this->facebook->getSession();
}
}
It would appear that no session is being set. Can anyone possibly point me in the right direction at all please?