New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems product sync on facebook catalog. #1689
Comments
|
We have another instance of this issue in 4925901-zen where a merchant reported that not all of their products are syncing despite removing unsynced products, and adding them back again. We see the following in the product editor page: According to the logs, products including a product that was not initially synced were submitted to Facebook. It looks like there may be an authentication issue that affects this process after the initial request. I see the following in the logs: The site is currently running the following:
|
|
Hey @pauljacobson, is this happening to all the products or only one? I did some investigation with the the logs shared in 4925901-zd-woothemes, I see that it is only one request failing multiple times. The request is the following:
Looking at the code, I see that there is a function making this request and it is trying to get the Facebook id (the product_id is encoded using base 64) facebook-for-woocommerce/includes/fbgraph.php Line 601 in 9b12b0f
When I looked at how it is formatted the variable
So for the previous request:
Product SKU: 8025496021584/-/bian Checking the customer website that is a variable product for the product 2987. So if this issue is happening with all the products it could relate to account permission, I would advise disconnecting the Facebook account and reconnecting and then trying the sync again. If the problem is only affecting this variable, can we check if this product is created at all in FB marketplace? It could be that the FB plugin thinks that has been synced already and is trying to get a product that does not exist in the FB marketplace or that the customer has deleted manually in the FB marketplace creating this issue. |
Hi @jorgemd24 This only seems to affect a couple products. I just focused on one product that was highlighted in the ticket notes.
Ok, great, thank you for the suggestion. What is the best way to approach these scenarios? |
|
Hi @pauljacobson, I could reproduce the same error following these steps:
Simple products do not have that issue as FB does not allow them to be edited/deleted when they have been uploaded through WooCommerce but Variable products do not have that restriction. I think the problem is because the product is deleted in FB and the FB plugin is still using the that ID to communicate with FB Marketplace and that's why the error says: So you could try to resync the product following these steps: 1 . Select the product and click "Exclude from FB sync":
After some time the product should be available in the FB Marketplace. For the long term, we will look into adding the restriction to variable products so they can not be edited/deleted in FB Marketplace creating a conflict between FB and the plugin. |
|
Hi @jorgemd24 We shared these steps with the user & they weren't sure about the 2nd step. Do they need to the change the SKU? I've also tried to reset + delete the product from FB & resync but the problem is still there. I also got these:
What do you suggest as the next step? |
|
Thanks @rashedripon,
I can reproduce that error when I delete the product manually in FB and then the plugin tries to sync, I am not sure what else could cause this error. To try to narrow the issue, could you provide a bit more information about the following questions:
Thanks! |
|
I've forwarded two of the questions to the customer. I can answer the second question: as far as I've investigated the problem is only with variable products. |
|
Hi @jorgemd24
This is not clear. We have a screenshot from the merchant showing a test product with variations in Facebook, but the Facebook data panel on the edit product side shows incomplete data, and clicking through to the parent link on Facebook does not indicated the existence of variations. This may indicate an update occurred between the time the screenshot was taken, and our investigation of the product.
This appears to be the case.
Out of 169 variable products, three are showing data in the synch product panel on the product edit screen correctly. Everything else shows only a link for the parent product. From the logs: To expand on the log data in the comment above. In response to the POST request to create the product group there is an error response. The full log is as follows: This error can be corrected by following the steps:
Which results in the same POST request getting the response The subequent request to |
|
Thanks, @nicdwilson for the logs, they are really useful. I have tried to replicate the problem but unfortunately, I haven't been able to do it. I see my variation products sync to FB. Looking into the logs I see this error:
There is a similar issue that was reported before with the same error: #2050 in that case the issue was related to the attributes.
Could we compare the attributes and options of those 3 products that are synced with one that is not syncing? I am wondering if there is something different in those 3 products that are making them sync to FB. Another question is: are those 3 products synced recently? or they were synced a long time ago?. Can you have a look in Tools->Scheduled Actions->search for |
|
Hi @jorgemd24 |
|
It looks like this was fixed by removing backslashes. Other similar issues will be prevented by the metabox update in 2.6.6 |




🔎 Isolate the bug
✍️ Describe the bug
When i create a product directly on my website (it almost never appears on my facebook catalog. Some do, some don't, with the exact same settings) i get this message :
"Facebook for WooCommerce error:
Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"
When i create a product on my facebook catalog, it NEVER appears in my website catalog.
I tried to contact the Woo Commerce support, but apart from asking me for the debug log, they didn't find anything.
##🚶♀️ Steps to reproduce
✔️ Expected behavior
Ideally, i want to create products on ONE place only (facebook catalog/website with woocommerce) without any copy, and see it syncronized on the other (facebook catalog/website with woocommerce)
🗃 Logs
10-23-2020 @ 12:39:40 - There was an error trying sync products using the Catalog Batch API for job f90446f396859e8fa4831ce0cf6eb781: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
10-23-2020 @ 12:50:06 - There was an error trying sync products using the Catalog Batch API for job b9cb2f2cbbc385a309a26c51c18281ab: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
10-23-2020 @ 12:50:27 - There was an error trying sync products using the Catalog Batch API for job f4743770f7e2583bd8a5044603080df0: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
10-23-2020 @ 12:50:36 - There was an error trying sync products using the Catalog Batch API for job 166a0b1107600ba3053792bdc6aaebff: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
10-23-2020 @ 12:53:23 - There was an error trying sync products using the Catalog Batch API for job 4c03fef483ffad4415583c1d80aee372: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
10-23-2020 @ 13:20:00 - There was an error trying sync products using the Catalog Batch API for job 3e60edfac19bbbc752238c4586574fee: GraphMethodException: Unsupported post request. Object with ID '466759344249769' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
The text was updated successfully, but these errors were encountered: