身体中的元标签

时间:2012-03-22 10:16:22

标签: facebook-like meta-tags open-graph-protocol

我想在我的网站www.nacts.com.au上找到我喜欢的按钮,以添加到我们的Facebook页面上的按钮,但收到此消息:

  

你有标签。这可能是因为您的格式错误并且它们在解析树中降低了,或者您不小心将Open Graph标记放在了错误的位置。无论哪种方式,您都需要在标签可用之前修复它。

但它实际上是在PHP

下放置的
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/" "html xmlns:fb="http://ogp.me/ns/fb#" >
    <head>
    <title>North Australia Career &amp; Training Services</title>
     <meta property="fb:app_id" content="191402794307447" />
     <meta property="og:title" content="North Australia Career & Training Services" />
     <meta property="og:type" content="website" />
     <meta property="og:url" content="http://www.nacts.com.au" />
     <meta property="og:image" content="http://nacts.com.au/images/NACTS4.png" />
     <meta property="og:site_name" content="NACTS" />
     <meta property="fb:admins" content="566419298" /> 
     <meta property="og:description" content="North Australia Career & Training Services"> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="msvalidate.01" content="3123382E32539EBE8C53C2CA69F7510D" />
     <meta name="google-site-verification" content="bExkQFnEooJVIoZIm70CO8H8Yjx_FfyyCC6hNE_SeoA" />
     <meta name="keywords" content=" training rockhampton, training rocky, rockhampton training,training,train,career development,mining,course,Resumes, Resumes Rockhampton, Tenders,Tender Writing, Marketing,business services,Rockhampton Business Services ,Courses,North Rockhampton Training,Industry Courses,Workplace Development,Rockhampton Career Advice,Career Development Rockhampton,RPL,North Australia,career,training Services,funding, Grants" />
</head>     

我做错了什么?

1 个答案:

答案 0 :(得分:4)

您的问题的答案在错误说明中。您必须在HTML代码的<head />部分嵌入og:meta标记。请详细了解开放图表标记的工作原理:http://ogp.me


修改

根据对问题的编辑,现在知道www.nacts.com.au的URL,它更容易进行故障排除。

我确实看到一个元标记位于BODY部分而不是HEAD中。它是<meta property="fb:page_id" content="148187795268337">