* @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; } }