2017-11-17 184 views
0

我想要將網頁鏈接粘貼到whatsapp時顯示圖像。但不知何故,它並沒有出現在那裏。我已經能夠顯示說明,但圖像尚未顯示。我嘗試過所有的片段,但無法成功。任何幫助將不勝感激。謝謝。圖像未顯示在WhatsApp鏈接

代碼:

<meta charset="utf-8"> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>Title</title> 

    <meta name="description" content="description of my website"> 
    <meta property="og:title" content="title of my page heading" /> 
    <meta property="og:url" content="http://www.example.com/example.php" /> 
    <meta property="og:description" content="desc"> 

    <meta property="og:image" itemprop="image" content="http://urlOfmyimage.jpg"> 
    <meta itemprop="width" content="256"> 
    <meta itemprop="height" content="256"> 
    <meta property="og:type" content="article" /> 

回答

1

感謝你的問題,我做了一些研究,並解決它。

您需要小於50或100 kb的圖像。

<meta property="og:type" content="..."> 
<meta property="og:url" content="..."> 
<meta property="og:title" content="..."> 
<meta property="og:image" content="...jpg"> 
<meta property="og:description" content="..."> 
<meta property="og:site_name" content="...">