Skip to content
Facebook strategy for Opauth
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


Opauth strategy for Facebook authentication.

Implemented based on

Getting started

  1. Install Opauth-Facebook:

    cd path_to_opauth/Strategy
    git clone Facebook


    composer require opauth/facebook
  2. Create Facebook application at

    • Remember to enter App Domains
    • "Website with Facebook Login" must be checked, but for "Site URL", you can enter any landing URL.
  3. Configure Opauth-Facebook strategy with at least App ID and App Secret.

  4. Direct user to http://path_to_opauth/facebook to authenticate

Strategy configuration

Required parameters:

'Facebook' => array(
	'app_id' => 'YOUR APP ID',
	'app_secret' => 'YOUR APP SECRET'

Even though fields is an optional configuration parameter for Opauth-Facebook, for most cases you would like to explicitly define it. It should be defined in a comma-separated string.

Refer to Facebook Fields Reference for list of valid fields.


Opauth-Facebook is MIT Licensed
Copyright © 2012 U-Zyn Chua (

You can’t perform that action at this time.