facebook - 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>
解决方案
您没有为正在使用的 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 中的多个图像。你将不得不测试。
推荐阅读
- c# - 如果您手动检测到线程错误,则抛出适当的异常
- serverless-framework - 如何为单个 API 网关设置多个 customDomain
- php - 在 WordPress 页面上登录用户名
- python-3.x - 如何使列名加粗并将颜色填充到列标题
- swift - URLSession 省略了委托的重定向管理方法
- python - + 和 += 有什么区别?
- r - Shiny的DT中styleColorBar行的比较
- spring-boot - 邮递员 503 服务不可用
- asp.net-core - 在 facebook 中进行外部登录并使用 asp.net 核心获取访问令牌
- javascript - 从 ember 插件中的 node_modules 导入 scss