How to automatically update my feeds (on-the-fly output or CRON task)?

If your catalog contains less than 1000 products, in your Facebook Business Manager account, you can indicate, for each feed, an "on-the-fly" output URL (i.e for a real time recovery).

These URL's are in the module back office. To retreive them, go to "My feeds" tab in the module and click "Use this solution" on the "On the fly output" method (moreover, if your catalog is compatible with real-time data recovery, the module will show you that this is the recommended method thanks to a badge):

 

 

For each different Langage/Country/Currency combination, the module generates a different URL (for example : one URL for french/France/Euro, another one for french/Belgium/Euro, etc...). To view the feed (i.e view it as it is at the time you execute the URL) click on the eye icon. The URL will be executed in another tab and you will just have to do a right click and select "view the source code of the page" to view your data feed. To copy this URL, click on the green framed icon below:

 

 

 

If the import was successful, you can keep this "on-the-fly" product import/update method! If not, it's possible that your catalog is too large: the "on-the-fly" output takes too long and the script times out before it can entirely generate the feed. In that case, you rather have to use a physical XML file (installed in your server) that will already contain all feed data and that will be updated regularly by a "CRON task". Go to the following section.

If your catalog has more than 1000 products, your server may not be so powerful to support an "on-the-fly" output. You indeed need, before Facebook retrieves your product data, to copy them in a XML file, that is "physically" present on your server. This file will then be retrieved by Facebook.

Of course this file has to be updated regularly, to make any changes you may have made in the meantime. So, the first thing to do is to intall an automated task that will update this file, at a frequency you'll decide on : it's what is called a CRON task.

To technically set a CRON task, read our dedicated FAQ by clicking here. Note that if you don't have any technical skill, you can ask your webmaster for help.

Moreover, to install a CRON task you will need to get its URL. To retrieve it, go to "My feeds" tab in the module and click "Use this solution" on the "Physical file updated by CRON task" method (moreover, if your catalog is large, the module will show you that this is the recommended method thanks to a badge):

 

 

In "Your XML files" subtab, check the files that correspond to the feeds you want to update by a CRON task, and click on "Save":

 

 

Then, click on "Your CRON URL's" subtab.

 

For each unique "Language/Country/Currency" combination you will need to install and configure a CRON task that will trigger the update of the corresponding XML data file. We recommend that you configure these CRON tasks so that they are triggered one after the other to avoid overloading your server.

To set up each CRON task, copy the URL given by the module for each "Language/Country/Currency" combination:

 

 

Once your CRON tasks are installed and configured, return to "Your XML files" subtab.

For each "Language/Country/Currency" feed, the URL you will need to copy and paste into your Facebook Business Manager account is the URL of the corresponding XML file that will be updated regularly thanks to the CRON task you have just configured.

To copy the URL of the XML file corresponding to a given "Language/Country/Currency" feed, you will need to click on the "copy" icon of the corresponding line. You will have to do the same for each of the XML files:

 

 

To learn how to configure your data import in the Facebook Business Manager interface:

Other FAQs in this category