Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在whatsapp上用图像标签分享网站链接_Html_Asp.net_Plugins_Whatsapp - Fatal编程技术网

Html 在whatsapp上用图像标签分享网站链接

Html 在whatsapp上用图像标签分享网站链接,html,asp.net,plugins,whatsapp,Html,Asp.net,Plugins,Whatsapp,当我们共享这样的链接时,我们如何在我们的网站中包含一个图像以在WhatsApp中显示 代码 //插件来自 www.addthis.com 要为大多数社交共享网站添加图像,您需要在网站的头标签中添加一些元数据 您正在寻找的元标记是“og:image”。这里有一个例子 <meta property="og:image" content="https://via.placeholder.com/150" /> 内容字段将指向所需图像的位置。当你在很多社交媒体(WhatsApp、F

当我们共享这样的链接时,我们如何在我们的网站中包含一个图像以在WhatsApp中显示

代码


//插件来自
www.addthis.com


要为大多数社交共享网站添加图像,您需要在网站的头标签中添加一些元数据

您正在寻找的元标记是“og:image”。这里有一个例子

<meta property="og:image" content="https://via.placeholder.com/150" />

内容字段将指向所需图像的位置。当你在很多社交媒体(WhatsApp、Facebook、LinkedIn…)上共享你的网站时,将使用此标签

注意,对于Twitter,标签是“Twitter:image:src”

有关更多信息,请查看此

</head>
<body>
    <form id="form1" runat="server">
    <div class="addthis_inline_share_toolbox"></div>
    </form>
</body>
</html>
<meta property="og:image" content="https://via.placeholder.com/150" />