【发布时间】:2021-07-23 07:57:18
【问题描述】:
我正在尝试使用 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>
【问题讨论】:
-
developers.facebook.com/docs/marketing-api/catalog/reference 说,“用于该项目的其他图像的 URL。最多包含 20 个图像 URL。使用逗号分隔多个 URL。” - 您似乎使用了分号。
-
它还说,“由于该字段采用字符串,因此整个 URL 列表必须用双引号格式化。例如:
"https://www.fb.com/t_shirt_2.jpg,https://www.fb.com/t_shirt_3.jpg"” - 所以可能是,你也需要包括那些(我不确定它指的是什么上下文。)
标签: facebook json-ld facebook-pixel