Skip to content

jrg96/ci_facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ci_facebook

Code Igniter Facebook Login implementation

This is a simple Codeigniter 3.x Facebook PHP SDK 4 implementation

Configuration

  1. copy the facebook folder of this repository to your Codeigniter's libraries folder (application/libraries)

  2. add the following code to application/config/config.php

$config['facebook']['api_id'] = 'APP_ID';
$config['facebook']['app_secret'] = 'APP_SECRET';
$config['facebook']['redirect_url'] = 'REDIRECT_URL';
$config['facebook']['permissions'] = 'public_profile, email, publish_actions';
  1. maybe you will experience some issues about sessions, so be sure you have loaded the session library

a) autoload the session library (application/config/autoload.php)

$autoload['drivers'] = array('session');

b) load the library on controller method

$this->load->library('session');
  1. to autoload the facebook library use the following code (application/config/autoload.php)
$autoload['libraries'] = array('facebook/facebook');

About

Code Igniter Facebook Login implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages