facebookarchive / facebook-for-magento

A first-party extension plugin built for Magento. This plugin will install a pixel on your site, upload your products into a catalog for use in FB ads, and (optionally) auto-create an FB shop with your products.
https://www.facebook.com/business/help/532749253576163
84 stars 57 forks source link

Cache images #89

Closed waseemazam closed 5 years ago

waseemazam commented 6 years ago

How can we replace the images links to cache images?

facebook-for-magento/app/code/community/Facebook/AdsExtension/Model/FBProductFeed.php

dmitridr commented 6 years ago

Hi,

This is not officially supported, but if you know the location of the cached images, you can change the URL of the image sent to FB here : https://github.com/facebookincubator/facebook-for-magento/blob/master/app/code/community/Facebook/AdsExtension/Model/FBProductFeed.php#L648

But actually FB should download the images from your site onto FB (after a while) which will act as a cache because users who see the product on FB will not load the image from your site but from FB, so I'm not sure there is cause for concern.

dmitridr commented 5 years ago

Closing since there hasn't been a reply for a while. Hope this solved your issue.