Are there any recent updates or changes to the Facebook API that could be affecting the functionality of retrieving events from a page?
There have been recent changes to the Facebook API that require apps to undergo a review process before they can access certain permissions, such as retrieving events from a page. To solve this issue, you will need to submit your app for review and ensure that it complies with Facebook's policies.
// Example PHP code to retrieve events from a Facebook page using the Graph API
$access_token = 'YOUR_ACCESS_TOKEN';
$page_id = 'PAGE_ID';
$url = "https://graph.facebook.com/v12.0/{$page_id}/events?access_token={$access_token}";
$events = json_decode(file_get_contents($url), true);
foreach($events['data'] as $event){
echo $event['name'] . "<br>";
echo $event['start_time'] . "<br>";
echo $event['place']['name'] . "<br>";
}