This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/oauth/config/facebook.php

43 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2013-05-23 07:00:14 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* OAuth Configuration - System Default Configurable Items.
*
* @package OAuth
* @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',
);
?>