You are here

public function FacebookPostCollectorFactory::__construct in Social Feed 8

FacebookPostCollector constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.

File

src/Services/FacebookPostCollectorFactory.php, line 41

Class

FacebookPostCollectorFactory
Class FacebookPostCollectorFactory.

Namespace

Drupal\socialfeed\Services

Code

public function __construct(ConfigFactoryInterface $configFactory) {
  $config = $configFactory
    ->get('socialfeed.facebooksettings');
  $this->defaultAppId = $config
    ->get('app_id');
  $this->defaultAppSecret = $config
    ->get('secret_key');
  $this->defaultUserToken = $config
    ->get('user_token');
  $this->pageName = $config
    ->get('page_name');
}