- Create a Facebook app (https://developers.facebook.com)
- Create a long lived Page Access Token (check out https://medium.com/@Jenananthan/how-to-create-non-expiry-facebook-page-token-6505c642d0b1 for more details)
- Get the Id of the Facebook Page you want to read from (if you don't know it, you can check https://findmyfbid.com/)
Find the $fb_access
variable in the config.php
file and set the fields You've got from your Facebook Developers Page
$fb_access = array(
'app_id' => '<facebook-app-id>',
'app_secret' => '<facebook-app-secret>',
'access_token' => '<page-token>'
);
Set the page id
$pageId = '<target-page-id>';
$ php -S localhost:8000