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

Bad encoding in the generated file for feeding magento products in facebook #13

Closed hristopeev closed 6 years ago

hristopeev commented 6 years ago

Hello,

We have Magento 1.9.3.4 store and we are using your extension for feeding our Facebook Business Product Catalog and run ads based on them.

Currently our store is in Bulgarian language and respectively all product titles, descriptions and attributes are in Bulgarian.

When we try the automatic fetch from the following screen: Fetch Screen

The result is 99.3% of our products are rejected due to errors: Upload session status - 99.3% rejected

And here is the product review: Products Review

So it seems that the file is generated in encoding not supported by the FB Business fetcher.

If we download the file locally and open and save it as UTF-8 and then upload in FB Business it is interpreted successfully and all products are processed correctly.

The site is topoutfit.com and the file generated by your module is here.

Is there a way to force the module to generate the content in UTF-8 encoding?

If you need any additional information for identifying the problem I am ready to assist.

Thanks!

dmitridr commented 6 years ago

Hello,

Thanks for writing in with detailed information. I checked your catalog inside our catalog manager tool and wasn't able to detect any problem. This page should also be visible to you as the owner of the catalog.

Since it seems there is no problem there, I'm guessing that the problem is with a different catalog which you set up with FB Business fetcher, which is not familiar to me. If that is the case you should ensure that the settings of the product feed you created are set to Encoding : UTF-8. If you tell us the ID of the feed which has the problem, we can do that for you.

An alternative solution is to use the catalog I linked and attach it to your business using the settings page, which should also work. Let us know if that helps.

bedroomathletics commented 6 years ago

That feed you must have checked after my manual upload - If you look at that link now, you will see that only 151 items have been uploaded from the scheduled upload from the early hours this morning...

appreciate the support :)

hristopeev commented 6 years ago

First of all thanks for the response!

Yes, exactly. If we download the file, open and save it as UTF-8 and then upload it manually everything is OK. But the automatic daily upload does not work.

Let me know if you need more info for figuring our the problem.

dmitridr commented 6 years ago

Hello @hristopeev

We still don't see the problem. Could you try this link:

https://www.facebook.com/products/catalogs/2031645360387842/feeds/137740220173162/overview

It shows that the products are uploading just fine on a daily basis. According to our logs, this was the catalog created for topoutfit.com when you set up the extension. Could you link us to where you are seeing the UTF-8 issue or give us an ID of the catalog which you are looking at? It appears not to be this one.

dmitridr commented 6 years ago

I will close this for now, as it seems the products are uploading fine in the above link. Please feel free to open a new issue and reference this one if the problem persists.