A fairly straight forward library to simplify the oAuth process when you want to integrate Facebook in your Code Igniter sites.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
libraries
README.md
spark.info

README.md

Facebook oAuth Library for CodeIgniter

I simply didn't want a huge library just to get facebook oAuth token, so I rolled my own. Is written for CI v2.x and Web Applications using facebook.

HOW 2 USE:

  1. Copy libraries/FB.php to your CI/application/libraries/FB.php

  2. Copy config/fb.php to your CI/application/config/fb.php

  3. Open CI/application/config/fb.php and give it your FB App's ID, Secret key and permissions your App requires.

  4. Finally to generate a token follow these steps:

     a. Display a link for users to click and authorize your app:
     		$this->load->library('FB');
     		$this->fb->get_auth_url( 'your_sites_redirect_url' );
     		
     b. Call $this->fb->generate_token(); on the redirect url you given above;
     
     c. Finally get token by $this->fb->get_token();
     		Save this token somewhere for future use.