- Gets events listed with data such as event image, name, time, description, ect. from your Facebook fan page (using Facebook PHP SDK, PHP and FQL).
- Display these event data to a webpage (assuming it is your website.)
- Show some hover effects with jQuery.
This one is great if you want your facebook events to be shown in your website in a synchronized way. Once you created or updated an event in your fan page, it will be automatically reflected to your website too. The advantages and risks of this is almost the same with what I discussed in my first post related to this one.
1. After creating an app, we'll have the following codes on our index.php file
February 19, 2014
For those having the '1969' or '1970' error. Change this line:
$start_date = date( 'l, F d, Y', $values['start_time'] );
$start_date = date( 'l, F d, Y', strtotime($values['start_time']));
Thanks to @n0fear!
September 13, 2013
Regarding "Headers already sent..." issues, you can learn more fixing that here.
February 24, 2013
- Used the latest Facebook PHP SDK (v.3.2.2)
- Added some CSS
- Added some comments on code
- Changed the query to display upcoming events only.
- Changed the live demo link.
- Changed the code download link.
The Code of a Ninja Resources
For FREE programming tutorials, click the red button below and subscribe! :)