public function FacebookPostCollector::setFacebookClient in Social Feed 8
Set the Facebook client.
Throws
\Facebook\Exceptions\FacebookSDKException
1 call to FacebookPostCollector::setFacebookClient()
- FacebookPostCollector::__construct in src/
Services/ FacebookPostCollector.php - FacebookPostCollector constructor.
File
- src/
Services/ FacebookPostCollector.php, line 93
Class
- FacebookPostCollector
- Class FacebookPostCollector.
Namespace
Drupal\socialfeed\ServicesCode
public function setFacebookClient() {
if (NULL === $this->facebook) {
$this->facebook = new Facebook([
'app_id' => $this->appId,
'app_secret' => $this->appSecret,
'default_access_token' => $this
->defaultAccessToken(),
'default_graph_version' => 'v4.0',
]);
}
}