Adapter capabilities

 User authenticationYES
 User profileYES
 User contacts listYES
 User feed newsYES
 Post page wallYES
 Access provider APIYES

Adapter specifications

 ID Facebook
 Protocol OAuth 2
 Keys registeration
 Dev documentation
 Based on Facebook PHP SDK
 Since HybridAuth 1.0.1
 Wrapper ./Hybrid/Providers/Facebook.php
Callback URL

Configuration & Usage

    $config = array(
      "base_url" => "",
      "providers" => array (
        "Facebook" => array (
          "enabled" => true,
          "keys"    => array ( "id" => "PUT_YOURS_HERE", "secret" => "PUT_YOURS_HERE" ),
          "scope"   => "email, user_about_me, user_birthday, user_hometown", // optional
          "display" => "popup" // optional

    require_once( "/path/to/hybridauth/Hybrid/Auth.php" );

    $hybridauth = new Hybrid_Auth( $config );

    $adapter = $hybridauth->authenticate( "Facebook" );

    $user_profile = $adapter->getUserProfile();

For Facebook you can configure several extra options:

Registering application

  1. Go to and create a new application by clicking "Create New App".
  2. Fill out any required fields such as the application name and description.
  3. Put your website domain in the Site Url field.
  4. Once you have registered, copy and past the created application credentials (App ID and Secret) into the HybridAuth config file.