【问题标题】:Facebook bad response code with Headway theme and WordPress SEO带有 Headway 主题和 WordPress SEO 的 Facebook 错误响应代码
【发布时间】:2014-01-26 00:52:55
【问题描述】:

我在网上搜索了好几个小时都没有找到答案。我根本无法将我最近的帖子发布/分享到 Facebook 并显示除网址之外的任何内容。没有图片或摘录。

我正在使用 Headway Wordpress Theme 和 Wordpress SEO 自动添加所有 og 标签。

这是最新的帖子来源 og 标签:

    <!-- Title -->
<title>My Landlord Wants Me To Add My Boyfriend To My Lease. Do I Have To? | San Francisco Tenant Lawyers</title>
<!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.24 - http://yoast.com/wordpress/seo/ -->
<meta name="robots" content="noodp,noydir"/>
<meta name="description" content="Tell your landlord that it&#039;s beneficial to her to allow you to add your boyfriend as a subtenant. If you move out she can increase the rent to market rate."/>
<link rel="canonical" href="http://crowandrose.com/2014/01/landlord-wants-add-boyfriend-lease/" />
<link rel="publisher" href="https://plus.google.com/104583554159124890350/about"/>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="My Landlord Wants Me To Add My Boyfriend To My Lease. Do I Have To? | San Francisco Tenant Lawyers" />
<meta property="og:description" content="Tell your landlord that it&#039;s beneficial to her to allow you to add your boyfriend as a subtenant. If you move out she can increase the rent to market rate." />
<meta property="og:url" content="http://crowandrose.com/2014/01/landlord-wants-add-boyfriend-lease/" />
<meta property="og:site_name" content="San Francisco Tenant Lawyers" />
<meta property="article:publisher" content="https://www.facebook.com/pages/Crow-Rose-Attorneys-At-Law/68192891917" />
<meta property="article:author" content="https://www.facebook.com/pages/crow-rose-attorneys-at-law/68192891917" />
<meta property="article:tag" content="consent" />
<meta property="article:tag" content="Lease" />
<meta property="article:tag" content="Rent Ordinance" />
<meta property="article:tag" content="Roommates" />
<meta property="article:tag" content="Subletting" />
<meta property="article:section" content="Tenant Law" />
<meta property="article:published_time" content="2014-01-22T10:37:56+00:00" />
<meta property="article:modified_time" content="2014-01-22T10:49:27+00:00" />
<meta property="fb:app_id" content="103449812457" />
<meta property="og:image" content="http://crowandrose.com/wp-content/uploads/2014/01/gift-horse-e1390405080789.jpg" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@Evict_This"/>
<meta name="twitter:domain" content="San Francisco Tenant Lawyers"/>
<meta name="twitter:creator" content="@https://twitter.com/evict_this"/>
<!-- / Yoast WordPress SEO plugin. -->

直到 2013 年 11 月 23 日。我能够偶尔分享缩略图和摘录。我说断断续续,从不前后一致。

我所有的 Facebook 发帖/分享尝试都在 Facebook 调试器中显示。

响应代码 403
必须修复的严重错误
错误的响应代码 URL 返回了错误的 HTTP 响应代码。
警告
必须修复的错误
缺少必需属性 'og:type' 属性是必需的,但不存在。

og 标签都已经到位并且已经存在多年了。显然 'og:type' 属性存在的。

今天我删除了我的 Facebook 应用,以防万一那是罪魁祸首。仍然是所有 403 错误。

我就是不明白。你有什么可以建议的吗?有什么我可以添加到 .htaccess 中的吗?

我的网站是http://crowandrose.com

【问题讨论】:

    标签: facebook wordpress facebook-graph-api


    【解决方案1】:

    我在我的 .htaccess 中允许 Facebook 的爬虫:

    Facebook 爬虫

    社交插件和 Open Graph 等许多平台服务要求我们的系统能够访问您的网页。我们认识到,在某些情况下,您可能不希望这些页面在公共 Internet 上、在测试期间或出于其他安全原因。

    为了促进这一点,您应该在您的安全系统中设置例外情况,以允许 Facebook 通过添加以下 IP 范围来抓取这些页面,截至 2013 年 3 月准确无误。

    31.13.24.0/21
    31.13.64.0/18
    66.220.144.0/20
    69.63.176.0/20
    69.171.224.0/19
    74.119.76.0/22
    103.4.96.0/22
    173.252.64.0/18
    204.15.20.0/22
    
    2401:db00::/32
    2620:0:1c00::/40
    2a03:2880::/32
    

    请注意,这些 IP 范围可以并且确实会定期更改,因此您应该定期运行以下命令以接收更新的列表 -

    whois -h whois.radb.net -- '-i origin AS32934' | grep ^route

    我的最后一个问题是,我在哪里输入命令?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-01-04
      • 2016-02-20
      • 2014-08-06
      • 1970-01-01
      • 1970-01-01
      • 2012-02-01
      • 1970-01-01
      相关资源
      最近更新 更多