ID for Facebook

  • I am trying to link my woo commerce store with facebook and they are requesting multiple microdata fields, I feel like that most of them were covered by installing your plugin.

    But I am encountering one more error:
    A required field is missing: id
    Products without “id” information can’t be uploaded. Please check that this field is included for each product in a separate, labeled column.

    Is there anything I can do so I can get the product SKU passed as Id?

    Thank you

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Please add the following filter to your theme functions.php file to add the id entity to your products schema:

     * Filter to change the Rank Math schema data for Product.
     * @param array $entity
     * @return array
    add_filter('rank_math/snippet/rich_snippet_product_entity', function ($entity) {
        $entity['@id'] = get_permalink().'#product';
        return $entity;

    Looking forward to helping you. Thank you.


Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.