将facebook object.html文件上传到博客并获取错误

时间:2013-01-30 16:04:07

标签: html facebook facebook-graph-api object

用于使用Object Debugger进行调试的URL: http://www.something2gain.blogspot.in/p/blog-page_29.html

这是我对象中的代码 .html文件:

<head>  
  <meta property="og:type"   content="firstandroidapp_k:valentine_" /> 
  <meta property="og:url"    content="http://something2gain.blogspot.in/p/blog-page_29.html" /> 
  <meta property="og:title"  content="Sample Valentine " /> 
  <meta property="og:image"  content="https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png" /> 

 </head>

显示错误:

Meta Tags In Body:  You have tags ouside of your . This is either because your was malformed and they fell lower in the parse tree, or you accidentally put your Open Graph tags in the wrong place. Either way you need to fix it before the tags are usable.

1 个答案:

答案 0 :(得分:0)

您似乎正在将完整的HTML文档嵌入到另一个文档中,包括第二个htmlheadbody元素,这当然是完全无意义的。

修复您的HTML代码,然后重试。 http://validator.w3.org/check?uri=http://something2gain.blogspot.in/p/blog-page_29.html