分享元标记og:图像为Facebook是选择其他图像然后定义



当我想在Facebook上分享它时,以下代码不再正常工作,在我的情况下,我使用的是 AddThis.com。

<meta property='og:title' content='Zet je (fiets)licht aan! ' />
<meta property='og:image' content='https://www.veens-nieuws.nl/uploads/headlines/normal/anwb-licht.jpg' />
<meta property='fb:app_id' content='411722875953005' />
<meta property='fb:pages' content='126005518071034' />

例如,您可以看到 https://www.veens-nieuws.nl/lifestyle/zet-je--fiets-licht-aan-并共享此项目,但在预览共享框中获得的图像不正确。

Facebook有什么变化吗,因为它直到几周前才起作用。

对于博客文章/文章

<meta property="og:title" content="Title Goes Here">
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/link" />
<meta property="og:image" content="" />
<meta property="og:image:alt" content="Alt Text for Image">
<meta property="og:site_name" content="YourSite" />
<meta property="og:locale" content="en_US" />
<meta property="og:contentnid" content="214" />
<meta property="og:contenttype" content="article_listing" />
<meta property="og:publishdt" content="Oct 5 , 2018" />
<meta property="og:uploadedby" content="" />
<meta property="fb:app_id" content="your app id" />

对于简单页面:

<meta property="og:title" content="Title" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.example.com/link" />
<meta property="og:image" content="http://www.example.com/favicon.png" />
<meta property="og:description" content="Description ..." /> 
<meta property="og:site_name" content="SiteName" />
<meta property="og:locale" content="en_US" />
<meta property="fb:app_id" content="your app id" />

最新更新