1. Go to this page and download the library: Download rocker/facebook-login library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rocker / facebook-login example snippets
return array(
...
'application.operations' => array(
...
'facebook/connect' => '\\Rocker\\FacebookLogin\\Connect'
),
'application.auth' => array(
'class' => '\\Rocker\\FacebookLogin\\Authenticator',
'mechanism' => 'facebook realm="your.website.com"'
),
...
'facebook' => array(
'id' => 'Facebook app id',
'secret' => 'Facebook app secret',
# (Optional) Comma separated string with data fields in the facebook response that
# should saved as user meta when the user gets connected
'connect_data' => 'birthday,locale',
# (Optional) Comma separated string with authentication mechanisms that should be disabled
'disabled_auth_mechanisms' => 'rc4,basic',
)
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.