• Resolved michaeldbr

    (@michaeldbr)


    Hi Guys,

    I have a problem with syncing the woocommerce products to Facebook. The images are not shown at the product under media at the Facebook catalogue . I tried the following: reinstalling the plugin, reconnecting the store to fb, removing all products and sync again, change store link to http instead of https, checked if /uploads/ folder is reachable by http (this is possible). Every other product info is synced but the images can’t be downloaded by fb. When I click the image link at facebook products the link will give sometimes a 403 error but when I press enter the image is shown.. it looks like fb is blocked somehow.. I also removed all 403 rules in apache, turned off fail2ban, checked the wordpress to facebook error log (no error logs shown only good transfers). Woocommerce logs is not shown any problem. Apache log is not shown any problems. Maps do have 755 and files 0644

    This is my apache and htacces conf:

    ServerName ***.nl
    ServerAlias ***.nl
    DocumentRoot ***
    <Directory "***">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    <Directory ***/wp-content>
    Order allow,deny
    Allow from all
    </Directory>



    <Directory /***/wp-content/uploads/2024/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    <Directory /***/wp-content/uploads/2025/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    <Directory /***/wp-content/uploads/2026/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    <Directory /***/wp-content/uploads/2027/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    RewriteEngine on
    SSLEngine on
    SSLCertificateFile /***.crt
    SSLCertificateKeyFile /***.key
    SSLCertificateChainFile ***.crt

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLCACertificateFile ***.crt
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteCond %{REQUEST_URI} !^/wp-content/uploads [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
    Header always set Content-Security-Policy "upgrade-insecure-requests;"

    # BEGIN WordPress
    # De richtlijnen (regels) tussen "BEGIN WordPress" en "END WordPress" worden
    # dynamisch gegenereerd en zouden alleen aangepast mogen worden via WordPress filters.
    # Alle wijzigingen aan de richtlijnen tussen deze markeringen worden overschreven.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Options -Indexes

    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    <files .htaccess>
    order allow,deny
    deny from all
    </files>

    RedirectMatch 403 ^/wp-includes/?$

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>

    I also made my own plugin who makes a product feed and this is uploading every hour to fb. this product feed is working correct and product images are showing. But I cant use my feed with the pixel feed because the pixel feed is always overwriting the image_link and only using my feed can’t be done because retargeting advertisements needs to have the visitor info from the pixel feed…

    I’m looking forward to your help ??

    greetings

  • The topic ‘Facebook cant download images’ is closed to new replies.