Facebook Events Widget

Very useful for groups etc. Display the events from your facebook events page on your website. Could easily be edited to add the events to google calendar


The code as above will create a google calendar like widget in agenda view on your webpage. Obviously you can strip it down to just the PHP and use it for all manner of things such as uploading the events to you google calendar with the gcal api.

To get the script to work you need to click export from your events page on facebook and paste the address in $url= then Change the beginning web:// to http://



Posted on 30.01.2012 13:19 by guest

Hi, i cant get this work. I have exporten and inserter the url under $Url but is gives me the following error:
Parse error: parse error in C:\wamp\www\facebook-events-widget.php on line 47
syntax error, unexpected ':'