• Resolved Ilari Arovuo

    (@iarovuo)


    Facebook for WooCommerce plugin provides a product feed, which the facebook servers will keep checking according to set schedule, and updating the product catalog for associated Facebook page and instagram account.

    – The product feed provides WooCommerce product details in csv format required by FB Catalog Manager
    – The feed request URL is format of:
    https://<website>/?wc-api=wc_facebook_get_feed_data&secret=<key&gt;

    When SG Optimizer is enabled, the request fails with FB Error message:
    – Fetching the feed from HTTP server failed due to the following reason (Curl error code: 18)(HTTP Status Code: 200).

    Excluding the URL with *wc_facebook_get_feed_data* in SG Optimizer does not help.

    Disabling the SG Optimizer plugin will resolve the issue.

    Reference Plugin: https://www.ads-software.com/plugins/facebook-for-woocommerce/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ilari Arovuo

    (@iarovuo)

    Confirmed. version 5.5.4 still has the same bug – the product feed download fails when SG Optimizer plugin is enabled.

    I have the same issue and the FB Feed fails with the same error version 5.5.4. I will have to manually upload a file if this cannot be resolved, and that will add hours of effort into what should be a simple process.

    I also noticed that SiteGround default Curl settings are not the same as some recommended elsewhere if one looks at info.php

    I stumbled across this issue as well.

    I have the same issue here.

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    The issue is caused by the HTML Minification optimization. Please, add the following to your functions.php file and it will work properly. We (SiteGround) will release a minor update soon and will add the exclude in the plugin core so you won’t have to do it in the functions.php file anymore:

    add_filter( 'sgo_html_minify_exclude_params', 'html_minify_exclude_params' );
    function html_minify_exclude_params( $exclude_params ) {
        // Add the query params that you want to exclude.
        $exclude_params[] = 'wc-api';
        return $exclude_params;
    }
    Thread Starter Ilari Arovuo

    (@iarovuo)

    Tested and confirmed, the above code snippet is fixing the issue.
    – Just used https://en-ca.www.ads-software.com/plugins/code-snippets/ to add it in, rather than modifying the theme files.

    BUT, now the problem with WC woocommerce-smallscreen.css combination is back.
    – And disabling combine CSS files will not help.

    • This reply was modified 4 years, 9 months ago by Ilari Arovuo.

    Thank you for the fix.

    The feed appears to be working…Cautiously optimistic.

    Some of the shop feed is still processing, but so far, so good after adding this to my child theme functions.php this morning and setting up the FB Feed and Shop Catalog again. I may now be able to assuage my client who was so upset this wasn’t working.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Facebook product feed fails’ is closed to new replies.