Open tobias-kuendig opened 4 years ago
Possible fix:
<?php
$url = "https://graph.facebook.com/v3.3/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={temporary_token}";
- if ($formModel->credentials['app_id']) {
+ if ($formModel->credentials && $formModel->credentials['app_id']) {
$url = str_replace('{app_id}', $formModel->credentials['app_id'], $url);
}
- if ($formModel->credentials['app_secret']) {
+ if ($formModel->credentials && $formModel->credentials['app_secret']) {
$url = str_replace('{app_secret}', $formModel->credentials['app_secret'], $url);
}
if ($formModel->_temporary_token) {
$url = str_replace('{temporary_token}', $formModel->_temporary_token, $url);
}
?>
October 465 Plugin 1.0.5 PHP 7.4.5
After a fresh plugin installation, when visiting:
the following exception is thrown. Switching to PHP 7.3 fixes this issue.