PHP code example of aquajo / facebook-event-scraper
1. Go to this page and download the library: Download aquajo/facebook-event-scraper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aquajo / facebook-event-scraper example snippets
use FacebookEventScraper\Scraper;
// scrape single event - details
$scraper = new Scraper();
$specificEventDetails = $scraper->scrapeEvent('1830273880516670'); // or use 'https://www.facebook.com/events/1830273880516670'
print_r($specificEventDetails);
// scrape events by organizer (8 most recent)
$organizerEvents = $scraper->scrapeEvents('github'); // or use 'https://www.facebook.com/GitHub/events/'
print_r($organizerEvents); // [id1, id2, ..., id8]