2017-01-25 77 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>