Enabled Fastbook/OAuth login
This commit is contained in:
43
modules/oauth/config/facebook.php
Normal file
43
modules/oauth/config/facebook.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OAuth Configuration - System Default Configurable Items.
|
||||
*
|
||||
* @package OAuth
|
||||
* @subpackage Facebook
|
||||
* @category Configuration
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
|
||||
return array(
|
||||
'cookie' => true,
|
||||
|
||||
/* (optional) The URL to redirect the user to once the login/authorization process is complete.
|
||||
The user will be redirected to the URL on both login success and failure, so you must check the
|
||||
error parameters in the URL as described in the authentication documentation.
|
||||
If this property is not specified, the user will be redirected to the current URL
|
||||
(i.e. the URL of the page where this method was called, typically the current URL in the user's browser). */
|
||||
'redirect_uri' => url::site(Request::current()->uri(), true),
|
||||
|
||||
/* (optional) Next URL to which to redirect the user after logging out (should be an absolute URL). */
|
||||
'next' => url::site(Request::current()->uri(), true),
|
||||
|
||||
/* (optional) The permissions to request from the user. If this property is not specified, basic
|
||||
permissions will be requested from the user. */
|
||||
'scope' => 'email',
|
||||
|
||||
/* (optional) The display mode in which to render the dialog. The default is page, but can be set to other values
|
||||
such as popup. */
|
||||
'display' => 'popup',
|
||||
|
||||
/* Fields from users table.
|
||||
user: http://developers.facebook.com/docs/reference/fql/user/ */
|
||||
'fields' => 'uid, username, pic, name, email',
|
||||
|
||||
/* Where to store session files.
|
||||
For example: 'native', 'database' */
|
||||
'session_type' => 'native',
|
||||
);
|
||||
?>
|
Reference in New Issue
Block a user