首页 > 解决方案 > Facebook 目录的微数据标签中的多个图像

问题描述

我正在尝试使用 json-ld 微标签和 facebook 像素将我的产品目录与我的网站同步,我设法同步了几乎所有内容,但仍然无法为每个产品同步一个以上的图像,我尝试将链接添加为字符串标签“additional_image_link”但没有成功:(,有人能帮我吗?

Thins 是我目前的微标签

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Product",
    "id":"92733",
    "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
    "productID":"gc-wbax",
    "sku":"gc-wbax",
    "brand":"gc-wbax",
    "name": "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s",
    "image_link": "https://example.com/0610061da72519685dbb74c629e0.webp",
    "additional_image_link" : "https://example.com/media/0f478bfd25ce1afef515d42f1274.webp;https://example.com/c73ae46fa96a85e0be20109469cd.webp",
    "offers": {
      "@type": "Offer",
      "itemCondition": "https://schema.org/NewCondition",
      "availability": "https://schema.org/InStock",
      "highPrice": "1700",
      "lowPrice": "1700",
      "price": "1700",
      "offerCount": "1",
      "priceCurrency": "USD"
    },
    "url": "https://example.com"
  }
</script>

标签: facebookjson-ldfacebook-pixel

解决方案


您没有为正在使用的 json-ld/schema.org 代码使用正确的属性名称或语法。

将像这样输入多个图像:

“图片”:[“https://example.com/0610061da72519685dbb74c629e0.webp”、“https://example.com/media/0f478bfd25ce1afef515d42f1274.webp”、“https://example.com/c73ae46fa96a85e0be20109469cd.webp”]

目前尚不清楚 Facebook 是否支持 json-ld/schema.org 中的多个图像。你将不得不测试。


推荐阅读