private function FacebookFeedBlock::getAccessToken in Facebook Feed Block 8
Get Access token.
Return value
string|null Token.
1 call to FacebookFeedBlock::getAccessToken()
- FacebookFeedBlock::getSettings in src/
Plugin/ Block/ FacebookFeedBlock.php - Fetches a list of page posts using Facebook's Graph API.
File
- src/
Plugin/ Block/ FacebookFeedBlock.php, line 205
Class
- FacebookFeedBlock
- Provides a 'FacebookFeedBlock' block.
Namespace
Drupal\facebook_feed\Plugin\BlockCode
private function getAccessToken() {
$accessToken = $this->configuration['access_token'];
if (!$accessToken) {
return NULL;
}
return $accessToken;
}