f91c1ae8
Dmitryi
new commit compon...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* An example of extending the provider class.
*
* @author Maxim Zemskov <nodge@yandex.ru>
* @link http://github.com/Nodge/yii2-eauth/
* @license http://www.opensource.org/licenses/bsd-license.php
*/
namespace nodge\eauth\services\extended;
class FacebookOAuth2Service extends \nodge\eauth\services\FacebookOAuth2Service
{
protected $scopes = [
self::SCOPE_EMAIL,
self::SCOPE_USER_BIRTHDAY,
self::SCOPE_USER_HOMETOWN,
self::SCOPE_USER_LOCATION,
self::SCOPE_USER_PHOTOS,
];
/**
* http://developers.facebook.com/docs/reference/api/user/
*
* @see FacebookOAuth2Service::fetchAttributes()
*/
protected function fetchAttributes()
{
$this->attributes = $this->makeSignedRequest('me');
return true;
}
}
|