Skip to content

Instantly share code, notes, and snippets.

View phibo23's full-sized avatar

Philipp Bohnenstengel phibo23

View GitHub Profile
@phibo23
phibo23 / fb2ical.php
Last active October 5, 2015 12:47 — forked from cognitom/fb2ical.php
Export ical format for Facebook page's events by cognitom. Modifications: pageId as parameter, restriction to public events, improved timezone adjustment, ignore exceptions
<?php
/*
original code by cogitom: https://gist.github.com/997980/
This script reads future events (plus several days into the past) from Facebook pages
and creates a subscribable iCalendar
Improvements upon the original version:
- fixed start and endtime reading
- timezone adjustment done on facebook's side (more reliable)