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/classes/Kohana/OAuth2/Provider/Facebook.php
2013-10-10 13:56:13 +11:00

33 lines
715 B
PHP

<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* OAuth Facebook Provider
*
* @package Kohana/OAuth2
* @category Provider
* @author Deon George
* @copyright (c) 2009-2013 Deon George
* @license http://dev.leenooks.net/license.html
*/
abstract class Kohana_OAuth2_Provider_Facebook extends OAuth2_Provider {
public $name = 'facebook';
protected $scope = 'email';
public function url_authorize()
{
return 'https://www.facebook.com/dialog/oauth';
}
public function url_access_token()
{
return 'https://graph.facebook.com/oauth/access_token';
}
public function url_user_details()
{
return 'https://graph.facebook.com/me';
}
} // End OAuth_Provider_Facebook