Title: Update Events manually
Last modified: August 30, 2016

---

# Update Events manually

 *  [idsbc](https://wordpress.org/support/users/idesignstudio/)
 * (@idesignstudio)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/update-events-manually/)
 * Hi,
 * we need to update the events but we find only automatic fetching of the events.
 * 1. How can we fetch the new events from our facebook page whenever we want?
 * 2. How can we say how often the automatic fetching should fire up?
 * Thanks.
 * [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/update-events-manually/#post-6848645)
 * **Update the events on Facebook. **
 * Or create a new one inside the custom post type _Facebook Events
    
   
    **Example
   Cron:**
 *     ```
       <?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 ‘Update Events manually’ 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/)

## Tags

 * [automatic](https://wordpress.org/support/topic-tag/automatic/)
 * [fetching](https://wordpress.org/support/topic-tag/fetching/)
 * [manual](https://wordpress.org/support/topic-tag/manual/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPTrashPanda](https://wordpress.org/support/users/jprescher/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/update-events-manually/#post-6848645)
 * Status: not resolved