2017-01-25 75 views
1

鏈接如何從URL中檢索圖像?有沒有標籤?從鏈接中的URL檢索圖像

當我試圖在鏈接的後窗口中發佈url鏈接時,它會自動顯示特定URL中可用的圖像,圖像被回收的基礎是什麼。因爲有任何標籤鏈接在搜索中顯示。

請幫我在同

+1

這應該問我認爲網站管理員。無論如何,查看「元標籤」 –

回答

0

它使用opengraph

樣品的Open Graph的meta標籤

(從https://developer.linkedin.com/docs/share-on-linkedin片斷)

<html prefix="og: http://ogp.me/ns#"> 
<head> 
    <meta property="og:title" content="My Shared Article Title" /> 
    <meta property="og:description" content="Description of shared article" /> 
    <meta property="og:url" content="http://example.com/my_article.html" /> 
    <meta property="og:image" content="http://example.com/foo.jpg" /> 
</head> 
<body> 
    … 
</body> 
</html>