在应用程序上发送链接时显示页面信息(例如whatsapp)



我希望在应用程序上共享链接时显示我的网页的主要信息,就像whatsapp附带的屏幕截图一样。应用程序应提供链接中的页面说明。我在找什么html标签?whatsapp 截图

提前感谢

您必须使用元标记来实现您的目标。

例如:

<meta name="description" content="Put here your webpage main text">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
<meta property="og:type" content="website">
<meta property="og:url" content="wepage url here">
<meta property="og:site_name" content="YOUR WEBPAGE NAME">
<meta property="og:image" itemprop="IMAGE you wanna show in the main link" content="url of the image">

之后,你应该能够将你的网页url链接到应用程序中,并显示你想要的内容。

向致以最良好的问候

相关内容

最新更新