public function FacebookPostCollector::__construct in Social Feed 8
FacebookPostCollector constructor.
Parameters
string $appId: Facebook app id.
string $appSecret: Facebook app secret.
string $userToken: Facebook user token.
string $pageName: Facebook page name.
\Facebook\Facebook|null $facebook: Facebook client.
Throws
\Exception
File
- src/
Services/ FacebookPostCollector.php, line 79
Class
- FacebookPostCollector
- Class FacebookPostCollector.
Namespace
Drupal\socialfeed\ServicesCode
public function __construct($appId, $appSecret, $userToken = NULL, $pageName = NULL, $facebook = NULL) {
$this->appId = $appId;
$this->appSecret = $appSecret;
$this->userToken = $userToken;
$this->pageName = $pageName;
$this->facebook = $facebook;
$this
->setFacebookClient();
}