Using this API, you can provide customer reviews of the products in your product catalog to enable merchandising your products on Facebook and Instagram. If your products are displayed on Meta technologies, the uploaded customer reviews will be displayed together, helping you to build trust with customers.
To create a new ratings and reviews feed, make a POST request to the /{product_catalog_id}/product_feeds edge and set feed_type to PRODUCT_RATINGS_AND_REVIEWS. When posting to this edge, a product feed of type PRODUCT_RATINGS_AND_REVIEWS is created for the catalog specified in the product_catalog_id field.
curl -X POST \
-F 'name="NAME_OF_THE_FEED"' \
-F 'feed_type="product_ratings_and_reviews"' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/{PRODUCT_CATALOG_ID}/product_feed{
"id": "{PRODUCT_FEED_ID}",
}Please remember this PRODUCT_FEED_ID, which will be used in the next step.
Once the feed is created, you can upload your product reviews data file using a POST request to the /{product_feed_id}/uploads edge. The file has to be a CSV file, and the schema is defined here
Example — The review data file is hosted on a public location
curl -X POST \
-F 'url="http://www.example.com/reviews_of_catalog_123.csv"' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/{PRODUCT_FEED_ID}/uploadsExample — Uploading review data files directly from the local machine. The path to the file needs to be changed according to your use case.
curl -X POST \
-F 'file=@reviews_of_catalog_123.csv;type=text/csv' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/{PRODUCT_FEED_ID}/uploads{
"id": "{UPLOAD_SESSION_ID}",
}Please remember the UPLOAD_SESSION_ID and provide it to your Meta representative for trouble shooting.