WEB

call Authenticate function from Library

access_token : .

LINE 332 :

access_token : .

LINE 332 :
Facebook PHP SDK for CodeIgniter - Redirect login example

Facebook PHP SDK for CodeIgniter

Redirect login example

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

  1. Check if a user is logged in on page load.
  2. If user are logged in, displayes some basic information about the user and a logout button.
  3. If user is not logged in, display login button.


access_token : .

LINE 332 :
Login