{
"name": "opauth/facebook",
"description": "Facebook strategy for Opauth",
"keywords": ["authentication","auth","facebook"],
"homepage": "http://opauth.org",
"license": "MIT",
"authors": [
{
"name": "U-Zyn Chua",
"email": "ch...@uzyn.com",
"homepage": "http://uzyn.com"
}
],
"require": {
"php": ">=5.2.0",
"opauth/opauth": ">=0.2.0"
"opauth/facebook": "*",
"opauth/google": "*",
"opauth/linkedin": "*"
},
"autoload": {
"psr-0": {
"": "."
}
}
}
opauth.config.php
<?php
/**
* Opauth basic configuration file to quickly get you started
* ==========================================================
* To use: rename to opauth.conf.php and tweak as you like
* If you require advanced configuration options, refer to opauth.conf.php.advanced
*/
$config = array(
/**
* Path where Opauth is accessed.
* - Begins and ends with /
* - eg. if Opauth is reached via http://example.org/auth/, path is '/auth/'
* - if Opauth is reached via http://auth.example.org/, path is '/'
*/
'path' => '/lib/Opauth/',
/**.
* Callback URL: redirected to after authentication, successful or otherwise
*/
'callback_url' => '{path}callback.php',
/**
* A random string used for signing of $auth response.
*/
'security_salt' => 'RVTmiilYf8Fyw5W10rx4W1KsVrieQCnpBzzpTBWA5vJidQKDx8pMJbmw28R1C4m',
/**
* Strategy
* Refer to individual strategy's documentation on configuration requirements.
*
* eg.
* 'Strategy' => array(
*
* 'Facebook' => array(
* 'app_id' => 'APP ID',
* 'app_secret' => 'APP_SECRET'
* ),
*
* )
*
*/
'Strategy' => array(
'Facebook' => array(
'app_id' => '580050405503686',
'app_secret' => '8e3d7a8263738eabc87f402e9bf25442'
),
// Define strategies and their respective configs here
),
);
TIA