【问题标题】:Facebook Open Graph with Wordpress [Not Working]Facebook 用 Wordpress 打开图表 [不工作]
【发布时间】:2017-07-28 22:29:58
【问题描述】:

我一直在尝试修复 wordpress 网站,所以当它在 facebook 上共享时,带有标题的图片和所需的一切都会显示出来。但是,由于某种原因,没有任何效果。例如,这是网站上的一页:

http://www.economicswire.net/weak-peso-worries-argentina.html

当我尝试使用 facebook 调试器对其进行调试时,我第一次单击调试时,会显示:

https://i.stack.imgur.com/HdDc8.png

但是,当我点击“Scrape again”时,会出现:

https://i.stack.imgur.com/steM0.png (请加在一起,我不能发链接,只允许一个)

我真的不知道如何解决它。我所做的任何事情,更改插件,都没有任何效果。我目前正在使用 Facebook Open Graph、Google+ 和 Twitter Card Tags 插件。

如果有人对如何克服这个问题有任何想法,请提供帮助。 我还研究了数以千计的其他问题,但没有任何帮助。我读过 gZip 压缩可能与它有关,但我不知道如何为 facebook 禁用它,而且我有其他网站启用它,工作得很好。

【问题讨论】:

    标签: php wordpress facebook facebook-graph-api


    【解决方案1】:

    你需要在你的 html 头中设置一些东西。以这些为例

    <meta property="fb:app_id" content="123456789">
    <meta property="og:url" content="https://example.com/page.html">
    <meta property="og:type" content="website">
    <meta property="og:title" content="Content Title">
    <meta property="og:image" content="https://example.com/image.jpg">
    <meta property="og:description" content="Description Here">
    <meta property="og:site_name" content="Site Name">
    <meta property="og:locale" content="en_US">
    <meta property="article:author" content="">
    

    【讨论】:

    • 谢谢你的回答,但我已经有了。该插件将其广告放在头部,并在 标记中包含 Open Graps。但由于某种原因,它似乎不起作用
    【解决方案2】:

    试试Yoast SEO。他们很好地实现了 Facebook Open Graph 标签的生成。

    【讨论】:

    • 我刚刚试了一下,查看源代码时,找不到任何可能导致问题的地方。但它不起作用:(
    猜你喜欢
    • 1970-01-01
    • 2012-12-15
    • 1970-01-01
    • 2013-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    • 1970-01-01
    相关资源
    最近更新 更多