Adding Facebook Connect to a CodeIgniter website Adding Facebook Connect to a CodeIgniter website codeigniter codeigniter

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