Here您可以找到如何设置og-tags的文档.
可以为og:image-tag提供一个数组.
Image > Array of images > Image[]
我尝试了很多并做了研究,但我找不到它……
..我如何在内容属性中解析此Image [] – 数组?
最佳答案 实际上,通过指定多个符合条件的og:image标签,您将获得一个数组.
要编码,这是通过
Arrays
If a tag can have multiple values, just put multiple versions of the
same tag on your page. The first tag (from top to bottom) is
given preference during conflicts.Put structured properties after you declare their root tag. Whenever
another root element is parsed, that structured property is considered
to be done and another one is started.For example:
< meta property =“og:image”content =“http://example.com/rock.jpg”/>
< meta property =“og:image:height”content =“300”/>
< meta property =“og:image:width”content =“300”/>
< meta property =“og:image”content =“http://example.com/rock2.jpg”/>
< meta property =“og:image”content =“http://example.com/rock3.jpg”/>
< meta property =“og:image:height”content =“1000”/>
< meta property =“og:image:secure_url”content =“https://secure.example.com/ogp.jpg”/>
另请阅读http://ogp.me的og meta标签.