【问题标题】:Sharing meta tag og:image for facebook is selecting other image then defined共享元标记 og:facebook 的图像正在选择其他图像,然后定义
【发布时间】:2019-03-17 12:46:11
【问题描述】:

当我想在 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 有什么改变吗,因为它直到几周前才起作用..

【问题讨论】:

    标签: html facebook-opengraph data-sharing


    【解决方案1】:

    对于博客文章/文章

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

    【讨论】:

    • 在新代码上测试过,但仍然得到与以前相同的结果..您还有其他解决方案吗? (veens-nieuws.nl/lifestyle/zet-je--fiets-licht-aan- 现在对您的解决方案有效)
    • 我认为您必须在 facebook 图形服务器中重新抓取您的网站
    • 感谢 Saurabh,我用调试/共享工具修复了它! +1
    猜你喜欢
    • 2019-11-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-01
    • 2016-02-08
    • 1970-01-01
    相关资源
    最近更新 更多