I'm trying to get an Facebook page events. I've checked that the app id and app secret are correct and I still keep getting the error.
<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
ob_start();
require 'facebook/src/facebook.php';
$fb = new Facebook(array(
'appid'=>'APPID',
'secret'=>'APPSECRET'
) );
$page_events = $fb->api('/PAGEID/events?fields=description,location,name,owner,cover,start_time,end_time', 'GET');
printf ('<pre>%s</pre>', $page_events);
?>
The error message:
Uncaught OAuthException: Invalid OAuth access token signature. thrown in