Title: Automatic Facebook Event Updates?
Last modified: August 31, 2016

---

# Automatic Facebook Event Updates?

 *  Resolved [kubajjz](https://wordpress.org/support/users/kubajjz/)
 * (@kubajjz)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/automatic-facebook-event-updates/)
 * Hy, thanks for great plugin. Is there a way to automaticall download new events
   na Facebook? I could not find it.
 * Thanks,
    Jakub.
 * [https://wordpress.org/plugins/facebook-events-importer/](https://wordpress.org/plugins/facebook-events-importer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPTrashPanda](https://wordpress.org/support/users/jprescher/)
 * (@jprescher)
 * [10 years ago](https://wordpress.org/support/topic/automatic-facebook-event-updates/#post-7187721)
 * The Pro version does this once every hour. However, you could try adding something
   like this to your project.
 *     ```
       <?php
       add_action( 'wp', 'fbe_cron_setup_schedule' );
   
       function fbe_cron_setup_schedule() {
       	if ( ! wp_next_scheduled( 'fbe_cron_hourly_event' ) ) {
       		wp_schedule_event( time(), 'hourly', 'fbe_cron_hourly_event');
       	}
       }
   
       add_action( 'fbe_cron_hourly_event', 'fbe_cron_do_this_hourly' );
   
       function fbe_cron_do_this_hourly() {
       	// Check for new events every hour
       	$pages = get_option("facebook_pages");
       	$location = array_filter(explode(",",$pages));
   
       	foreach ($location as $loc){
       		fbe_facebook_sdk($loc,get_option("app_id"),get_option("app_secret"));
       	}
       	update_option('fbe_cron_date', time());
       }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Automatic Facebook Event Updates?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-events-importer_212121.svg)
 * [Facebook Events Importer](https://wordpress.org/plugins/facebook-events-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-events-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-events-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-events-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-events-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-events-importer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPTrashPanda](https://wordpress.org/support/users/jprescher/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/automatic-facebook-event-updates/#post-7187721)
 * Status: resolved