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.



    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘ID for Facebook’ is closed to new replies.