You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect your shop to Facebook and Instagram In Magento Admin
Select Shop and ads or Ads Only
Connection screen looks fine without errors
Expected result (*)
Facebook_Products File is generated in /export folder
Products start showing in Meta
Actual result (*)
facebook_prodcuts.csv.gz is generated but keeps growing out of control until connection is deleted in Magento Admin.
No products are sent to Meta
I "Run" the generated error log in ChatGPT andI got this results:
1.- Type Mismatch Error (saveIsOnsiteEligible)
Error:
Meta\BusinessExtension\Model\MBEInstalls::saveIsOnsiteEligible(): Argument #2 ($storeId) must be of type int, string given
Cause:
It looks like the function saveIsOnsiteEligible() expects an integer (int) for the $storeId, but it's receiving a string ('3' instead of 3).
This suggests a data type inconsistency in the Meta Business Extension module.
Possible Fix:
Modify the code in the extension (if you have access):
Check the file:
/srv/public_html/vendor/meta/module-business-extension/Model/MBEInstalls.php
Locate line 154 where saveIsOnsiteEligible(false, '3') is being called.
Convert the store ID to an integer:
saveIsOnsiteEligible(false, (int)$storeId);
If this is a default Magento extension from Meta, they need to fix the type issue in their extension.
You can check for an updated version of the module (meta/module-business-extension).
2.
3. Facebook Product Feed Sync FailureError:
Client error: GET https://graph.facebook.com/product_feeds?access_token=...
resulted in a 400 Bad Request response:
{"error":{"message":"Unsupported get request. Object with ID 'product_feeds' does not exist...
Cause:
The request to fetch product_feeds from Facebook's API failed.
This usually happens when:
The Catalog ID is missing or invalid.
The Access Token used in the request is expired or incorrect.
The Facebook Business Extension configuration is broken.
Possible Fix:
Check Your Facebook Catalog in Meta Commerce Manager
Go to Facebook Commerce Manager: https://business.facebook.com/commerce.
Ensure that your catalog exists and that your store (store_id: 3) is properly linked.
Refresh the Facebook Token
In Magento Admin Panel:
Navigate to Stores > Configuration > Facebook Business Extension.
Try reconnecting your Facebook account.
Generate a new access token.
Manually Assign a Valid Catalog ID
In Magento database (core_config_data table):
SELECT * FROM core_config_data WHERE path LIKE '%facebook%';
If the catalog_id is missing or incorrect, update it.
Check Module Version and Update
Your current Meta Business Extension version is 1.4.1.
If there's a newer version, update it using:
Final Steps
First, fix the type mismatch issue in the extension code.
Then, refresh your Facebook access token and verify that your catalog is correctly linked.
If issues persist, contact Meta Support and report the missing product_feeds object.
The text was updated successfully, but these errors were encountered:
@CalzaFino We will be addressing the issue Meta\BusinessExtension\Model\MBEInstalls::saveIsOnsiteEligible(): Argument https://github.com/magento/meta-for-magento2/issues/2 ($storeId) must be of type int, string given and will provide the fix in the next version.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
I "Run" the generated error log in ChatGPT andI got this results:
1.- Type Mismatch Error (saveIsOnsiteEligible)
Error:
Meta\BusinessExtension\Model\MBEInstalls::saveIsOnsiteEligible(): Argument #2 ($storeId) must be of type int, string given
Cause:
It looks like the function saveIsOnsiteEligible() expects an integer (int) for the $storeId, but it's receiving a string ('3' instead of 3).
This suggests a data type inconsistency in the Meta Business Extension module.
Possible Fix:
Modify the code in the extension (if you have access):
Check the file:
/srv/public_html/vendor/meta/module-business-extension/Model/MBEInstalls.php
Locate line 154 where saveIsOnsiteEligible(false, '3') is being called.
Convert the store ID to an integer:
saveIsOnsiteEligible(false, (int)$storeId);
If this is a default Magento extension from Meta, they need to fix the type issue in their extension.
You can check for an updated version of the module (meta/module-business-extension).
2.
3. Facebook Product Feed Sync FailureError:
Client error: GET https://graph.facebook.com/product_feeds?access_token=...
resulted in a
400 Bad Request
response:{"error":{"message":"Unsupported get request. Object with ID 'product_feeds' does not exist...
Cause:
The request to fetch product_feeds from Facebook's API failed.
This usually happens when:
The Catalog ID is missing or invalid.
The Access Token used in the request is expired or incorrect.
The Facebook Business Extension configuration is broken.
Possible Fix:
Check Your Facebook Catalog in Meta Commerce Manager
Go to Facebook Commerce Manager: https://business.facebook.com/commerce.
Ensure that your catalog exists and that your store (store_id: 3) is properly linked.
Refresh the Facebook Token
In Magento Admin Panel:
Navigate to Stores > Configuration > Facebook Business Extension.
Try reconnecting your Facebook account.
Generate a new access token.
Manually Assign a Valid Catalog ID
In Magento database (core_config_data table):
SELECT * FROM core_config_data WHERE path LIKE '%facebook%';
If the catalog_id is missing or incorrect, update it.
Check Module Version and Update
Your current Meta Business Extension version is 1.4.1.
If there's a newer version, update it using:
Final Steps
First, fix the type mismatch issue in the extension code.
Then, refresh your Facebook access token and verify that your catalog is correctly linked.
If issues persist, contact Meta Support and report the missing product_feeds object.
The text was updated successfully, but these errors were encountered: