FacebookAuthSettings.php in Social Auth Facebook 3.x
File
src/Settings/FacebookAuthSettings.php
View source
<?php
namespace Drupal\social_auth_facebook\Settings;
use Drupal\social_api\Settings\SettingsBase;
class FacebookAuthSettings extends SettingsBase implements FacebookAuthSettingsInterface {
protected $appId;
protected $appSecret;
protected $graphVersion;
protected $defaultToken;
protected $oauthRedirectUrl;
public function getAppId() {
if (!$this->appId) {
$this->appId = $this->config
->get('app_id');
}
return $this->appId;
}
public function getAppSecret() {
if (!$this->appSecret) {
$this->appSecret = $this->config
->get('app_secret');
}
return $this->appSecret;
}
public function getGraphVersion() {
if (!$this->graphVersion) {
$this->graphVersion = $this->config
->get('graph_version');
}
return $this->graphVersion;
}
}