Adding Facebook Connect to a CodeIgniter website
Try this Facebook Library by Danny Tran hosted on Github. Works wonders and is fairly easy to get set-up.
You are loading the new (http://connect.facebook.net/en_US/all.js) and the old (http://static.new.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php) JS SDKs. Remove the reference to the older one. The new JS SDK will set a signed cookie, which can be read (securely) using the new PHP SDK: http://github.com/facebook/php-sdk. This auth example for the JS SDK might help too: http://fbrell.com/auth/all-in-one
These links might solve your any facebook programming problems.
http://developers.facebook.com/docs/authentication/
http://net.tutsplus.com/tutorials/php/how-to-authenticate-your-users-with-facebook-connect/
http://realfoot.com/facebook_connect/login_page.php
Facebook Login Button: Can I prevent auto page reload after login?
http://www.braintilt.com/fbcookies.php
http://www.permadi.com/blog/2011/02/facebook-authenticationlogin-process-in-popup-or-not/
http://developers.facebook.com/docs/reference/javascript/FB.login/
http://ottopress.com/wordpress-plugins/simple-facebook-connect/
http://devtacular.com/articles/bkonrad/how-to-integrate-with-facebook-connect/
http://developers.facebook.com/docs/guides/web/
http://www.1stwebdesigner.com/tutorials/facebook-integrate/
http://worldpointx.com/2009/05/authentication-rot/
https://github.com/facebook/php-sdk/
http://www.justin-klein.com/projects/wp-fb-autoconnect
http://en.kioskea.net/forum/affich-12130-problems-connecting-to-facebook
http://en.kioskea.net/s/Cannot+login+on+website+using+facebook+login
http://www.google.com/support/forum/p/Chrome/thread?tid=310bc994b12d2750&hl=enhttp://www.google.com/support/forum/p/Chrome/thread?tid=310bc994b12d2750&hl=en
http://moodle.org/mod/forum/discuss.php?d=142036
http://www.webtechnick.com/blogs/view/229/CakePHP_Facebook_Plugin_Auth_Facebook_and_more