为处理 2019 年中期的任何人提供一些更新。我今天正在处理这个问题。我试图指定某个缩略图在 Facebook Messenger、iOS 消息和 android 消息的富消息预览中显示。
使用我正在开发的网站上的实际代码。请务必将内容替换为您自己的内容。
这 4 个标签使它适用于 Facebook Messenger 和 iOS 消息:
<meta property="og:title" content="Software to manage leasing and rental applications" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://geteagle.com.au/products/leasing-tools/" />
<meta property="og:image" itemprop="image" content="https://geteagle.com.au/site/templates/images/logo-og-white-big.jpg" />
由于某种原因,android 消息拒绝显示我指定的缩略图。我做了很多研究并尝试了我在另一个问题中可以找到的所有内容:Showing Thumbnail for link in WhatsApp || og:image meta-tag doesn't work
我的标签膨胀到 9 个(8 个元,1 个链接),但实际上是链接标签使它在 android 消息中工作:
<link itemprop="thumbnailUrl" href="https://geteagle.com.au/site/templates/images/logo-og-white-big.jpg">
我不确定除了链接标签之外是否还需要其他标签才能使其在 android 消息上工作,但如果您想尝试,这里是完整的块:
<meta property="og:title" content="Software to manage leasing and rental applications" />
<meta property=”og:description” content="Eagle offers a suite of of leasing tools and application management features to power-up your rental team!" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://geteagle.com.au/products/leasing-tools/" />
<meta property="og:image" itemprop="image" content="https://geteagle.com.au/site/templates/images/logo-og-white-big.jpg" />
<meta property="og:image:secure_url" itemprop="image" content="https://geteagle.com.au/site/templates/images/logo-og-white-big.jpg" />
<meta property="og:image:width" content="1000" />
<meta property="og:image:height" content="500" />
<link itemprop="thumbnailUrl" href="https://geteagle.com.au/site/templates/images/logo-og-white-big.jpg">
非常感谢this 对上述问题的特别回答,解决了我令人沮丧的情况。
希望这会有所帮助。祝你好运!