Facebook Scrape信息 - 响应代码206错误

时间:2013-03-18 12:18:11

标签: codeigniter facebook-opengraph facebook-comments

我使用了Facebook评论插件。当我在我的html页面上写下以下元标记时。我正在使用Codeigniter框架工作来处理我的应用程序。

 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"
          xmlns:og="http://ogp.me/ns#"
          xmlns:fb="http://www.facebook.com/2008/fbml">

    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object#">

      <meta property="fb:admins" content="{MY_FB_ID}"/>
      <meta property="fb:app_id" content="{MY_APP_ID}" /> 
      <meta property="og:type"   content="website" /> 
      <meta property="og:url"    content="{my url}" /> 
      <meta property="og:title"  content="beyondandameter" /> 
      <meta property="og:image"  content="http://mysitedomainname/Andameter/uploads/tech1.jpg" /> 

抓取信息

Response Code:  206
Fetched URL:    http://mysitedomain/Andameter/anda/politics_pics/26
Canonical URL:  http://mysitedomain/Andameter/anda/politics_pics/26

打开应该修复的图表警告

Inferred Property:  The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property:  The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property:  The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Small og:image: All the images referenced by og:image should be at least 200px in both dimensions, with 1500x1500 preferred. (Maximum image size is 5MB.) Please check all the images with tag og:image in the given url and ensure that it meets the recommended specification.

有人帮帮我吗?我的错在哪里?

1 个答案:

答案 0 :(得分:0)

我会删除          

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object#">

开始吧 206暂停,但其他错误将被修复 图像需要比它告诉你的更大,尝试像600x400像素 您可以添加多个图像标记,只需重复该行并替换图像网址即可 你也可以添加一个描述 希望有所帮助