当我粘贴到Facebook,Whatsapp等其他网站时,如何显示图像预览和标题

时间:2019-01-28 20:03:44

标签: javascript php codeigniter url

我试图复制另一个网站的新闻 this is image when i copy one of the url news 然后将其粘贴到whatsapp中,然后看起来像这样this is image when i after paste in whatsapp,太好了

但是,当我复制项目新闻like this的一个网址,然后粘贴到whatsapp中时,它将像这样this is image after i paste in whatsapp,它将不像上一张图​​片,没有标题,并且预览图像

谢谢

1 个答案:

答案 0 :(得分:-1)

您的网站未使用元标记。基本上是这样的

<meta property="og:title" content="Title">
<meta property="og:description" content="Description">
<meta property="og:image" content="http://example.com/thumbnail.jpg">
<meta property="og:url" content="http://example.com/index.htm">

有关meta的Google,以了解详细信息以及如何使用。