简体   繁体   English

共享元标记og:图像为Facebook正在选择其他图像然后定义

[英]Sharing meta tag og:image for facebook is selecting other image then defined

The following code is not working correct anymore when I want to share this on Facebook, in my case I'm using AddThis.com. 当我想在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' />

For example you can see https://www.veens-nieuws.nl/lifestyle/zet-je--fiets-licht-aan- and share this item, you get not the correct image in the preview share box. 例如,您可以看到https://www.veens-nieuws.nl/lifestyle/zet-je--fiets-licht-aan-并分享此项目,您在预览共享框中得不到正确的图像。

Is there something changed by Facebook, because it worked until a couple of weeks ago.. Facebook是否有所改变,因为它在几周之前就已经有效了......

For Blog Post / Article 对于Blog Post / Article

    <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" />

For Simple Page : 对于简单页面:

<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" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM