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
 IDp URL http://www.facebook.com/
 Keys registeration https://developers.facebook.com/apps
 Dev documentation http://developers.facebook.com/
 Based on Facebook PHP SDK  https://github.com/facebook/php-sdk
 Since HybridAuth 1.0.1
 Wrapper ./Hybrid/Providers/Facebook.php
Callback URL http://mywebsite.com/path_to_hybridauth/?hauth.done=Facebook

Configuration & Usage


<?php 
    $config = array( 
      "base_url" => "http://mywebsite.com/path/to/hybridauth/",  
      "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 https://developers.facebook.com/apps 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.