Title: Facebook Feed Generation Time
Last modified: August 18, 2021

---

# Facebook Feed Generation Time

 *  Resolved [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * (@mmkurhade)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/)
 * Hi,
 * as mentioned in [this](https://wordpress.org/support/topic/facebook-regenerate-feed/)
   thread, I tried putting following code into functions.php but nothing changed.
   Scheduled Actions section still shows occurrence every 15 minutes. Kindly help.
 *     ```
       // Change Facebook for WooCommerce feed generation interval
       function my_custom_facebook_feed_interval( $interval ) {
           return DAY_IN_SECONDS;
       }
       add_filter( 'wc_facebook_feed_generation_interval', 'my_custom_facebook_feed_interval', 10, 2 );
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffacebook-feed-generation-time%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Shohan Hossain Nabil – a11n](https://wordpress.org/support/users/sohanhossain/)
 * (@sohanhossain)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14779533)
 * Hello [@mmkurhade](https://wordpress.org/support/users/mmkurhade/),
 * I had a look at the code again and it should work fine. Could you please tell
   us how did you add the code to your site?
 * We look forward to your response. Thanks!
 *  Thread Starter [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * (@mmkurhade)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14779745)
 * I have added it through theme editor in functions.php of child theme. I am using
   Astra.
 *  [wpnomad a11n](https://wordpress.org/support/users/wpnomad/)
 * (@wpnomad)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14779865)
 * Hi [@mmkurhade](https://wordpress.org/support/users/mmkurhade/) ,
 * > I have added it through theme editor in functions.php of child theme. I am 
   > using Astra.
 * While that should generally work, we’re not familiar with Astra as it’s a third
   party theme, and we’re not sure how it queues the functions.
 * Could you please try adding the code via Code Snippets plugin: [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)?
 * Do let us know how that goes and if you need any further help from us.
 *  Thread Starter [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * (@mmkurhade)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14792375)
 * I tried with that as well. Time doesn’t change. Am I missing something to see
   the changes at status page?
 *  [Felipe (a11n)](https://wordpress.org/support/users/felipea8c/)
 * (@felipea8c)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14793073)
 * Hi there!
 * That’s really odd as the code is correct from what I see.
 * Are you able to share a screenshot of what you see from your end when checking
   the status page?
 * I recommend [https://snipboard.io](https://snipboard.io) for sharing screenshots–
   please follow the instructions on the page, then paste the URL in this chat.
 *  Thread Starter [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * (@mmkurhade)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14793502)
 * Here it is: [https://snipboard.io/kRj1mg.jpg](https://snipboard.io/kRj1mg.jpg)
 *  [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14796084)
 * Hey [@mmkurhade](https://wordpress.org/support/users/mmkurhade/),
 * As a test can you try this alternative snippet and let us know if this one works
   for you.
 * [https://gist.github.com/lukecav/5e6b83eaf9a922060299b62fcbe2d833](https://gist.github.com/lukecav/5e6b83eaf9a922060299b62fcbe2d833)
 * Thanks
 *  [Sol J. a11n](https://wordpress.org/support/users/solstudioim/)
 * (@solstudioim)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14818441)
 * Hi there [@mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * Please let us know if you still have the issue after following Stuart’s suggestion.
 * If not please check if your plugin is on the latest version, as that’s not an
   issue with the latest plugin.
 * So I’m going to mark this as resolved – If you still need have the issue, please
   contact us at [WooCommerce.com > My Account > Support](https://woocommerce.com/my-account/create-a-ticket/?form=ticket).
   You may need to create an account before you can access that page.
 * Please include a link to this forum thread, so that we can keep track of what’s
   already been done.
 * We will be able to help you further there.
 *  Thread Starter [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * (@mmkurhade)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14819422)
 * I re-installed plugin and it started working. Thanks all.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Facebook Feed Generation Time’ is closed to new replies.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php snippet](https://wordpress.org/support/topic-tag/php-snippet/)

 * 9 replies
 * 6 participants
 * Last reply from: [mmkurhade](https://wordpress.org/support/users/mmkurhade/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/facebook-feed-generation-time/#post-14819422)
 * Status: resolved