Simple example how you can use the Facebook PHP SDK for CodeIgniter and the Web Redirect login method.
For this example to work, make sure you have set 'facebook_login_type' as 'web' and specified login and logout redirect links in the config file.
This example code do 3 things