enter image description here我在网站上添加了图片。我希望在分享我的网站链接时显示该图像。它仅显示在whatsapp中,而不是在facebook和Skype中。
我的网站链接是:https://www.telotrovo.it/
我试过这段代码:
contentvalue

答案 0 :(得分:1)
Facebook,Skype和其他人正在使用开放图谱协议来获取这些。我在我的一个网站上有这些:
<meta property="og:title" content="Site Title" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://my.website.com" />
<meta property="og:image" content="http://my.website.com/images/thumb.png" />
<meta property="og:description" content="Site description" />
在Skype和Facebook上显示为链接预览的图像是og:image中指定的拇指图像。
这四个应该出现在你的标签中。还要确保将XML NameSpace添加到标记:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml">
答案 1 :(得分:0)
您可以尝试以下,
<meta property="og:image" content="https://www.telotrovo.it/wp-content/uploads/2016/02/siteimage.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="200">
<meta property="og:image:height" content="200">
图像宽度应指定,最小200 X 200,您可以通过
进行更改答案 2 :(得分:0)
使用至少1200 x 630像素的图像,以便在高分辨率设备上获得最佳显示效果。至少,您应该使用600 x 315像素的图像来显示包含较大图像的链接页面帖子。