我的网站缩略图在 WhatsApp 上不显示,而在 Facebook 上则完全没问题;我已经添加了 OG 元标记。这是我的代码:
<head>
<meta property="og:url"content="http://www.mywebsite.com"/>
<meta property="og:type"content="article"/>
<meta property="og:title"content="text text text !!"/>
<meta property="og:description"content="text about my webiste."/>
<meta property="og:image"content="http://www.website.com/images/logo.png"/>
<meta property="og:image:width" content="600"/>
<meta property="og:image:height" content="314"/>
</head>
所以问题主要在于图像大小,因为未显示的图像是 1920 x 1080,而 Whatsapp 显然不会处理 og:image 这么大的图像。我将其大小调整为 600 x 600,效果非常好。