[eluser]programmieraffe[/eluser]
Hey Codeigniter-Folks,
I have a problem using the facebook-ignited package.
Webserver:
MAMP + OSX 10.6.7 / PHP: 5.2.13
( access via "local domain" [etc/hosts - local.mydomain.de, virtual host in MAMP/apache] )
Codeigniter Reactor: 2.0.2
CIBonfire: 1.0.1
Facebook-Ignited: 1.0.4
config/fb_ignited.php:
Code:
config/fb_ignited.php
$config['fb_appid'] = 'XXXXXX6';
$config['fb_secret'] = 'XXXXXX';
$config['fb_cookie'] = true;
$config['fb_canvas'] = '';
$config['fb_auth'] = '';
controller:
Code:
class welcomeFacebook extends Front_Controller{
function getMe(){
// The fb_ignited library is already auto-loaded so call the user and app.
$this->load->library('fb_ignited');
$this->fb_me = $this->fb_ignited->fb_get_me(false);
if (isset($this->request_result))
{
$content_data['error'] = $this->request_result;
}
$content_data['me'] = $this->fb_me;
$content_data['fb_app'] = $this->fb_app;
$this->load->view('welcome_message_fbignited', $content_data); // the default facebook_ignited view template
}
}
The result is an infinite Loop with Chrome and Safari, both when logged in at facebook already or not...
Code:
oauth (www.facebook/com/dialog) 302 Found
uiserver.php (www.facebook.com/connect) 302 Found
/welcomeFacebook/getMe/?code=[….]&state;=[….]
oauth (www.facebook/com/dialog) 302 Found
...
fb_get_me() (Fb_ignited) fails permanently, because $this->CI->facebook->getUser() does not return a user, so it redirects over and over again. I figured out, that there is no signed request. And that getUserFromAvailableData() (base_facebook.php) fails to get user data.
The app-id and app_secret are fine, because i tested it with the javascript-sdk and it all worked well.
How can i debug this? Is there a debug option for php-sdk / facebook-ignited?
Or is it a codeigniter-cookie/session related problem? (Or is it something else?

)
Thanks in advance for your help!
Matthias