2012-03-22 123 views
5

我试图让我的网站上www.nacts.com.au我喜欢按钮添加到那些我们的Facebook页面上,但收到此消息:Meta标签身体

你必须标记ouside的你的 。这要么是因为你的格式不正确,而是他们在解析树中降低了,或者你不小心将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>  

什么我做错了下实际配售这样吗?

回答

3

问题的答案在错误描述中。您必须在HTML代码的<head />部分中嵌入og:meta标签。请阅读更多关于图形标记如何开在这里工作:http://ogp.me


编辑

基于所编辑的问题,现在知道www.nacts.com.au的URL,它更容易排除故障。

我看到一个元标签在BODY部分,而不在HEAD中。这是<meta property="fb:page_id" content="148187795268337">

+1

对不起,我不明白? – Jen 2012-03-29 10:05:37

+1

1)您是否阅读过ogp.me网站? 2)你知道如何编辑HTML吗? – DMCS 2012-03-29 20:34:05

+1

谢谢你的帮助,我非常感谢。是的,我已经通过该网站阅读,只是更多地困惑自己。我不是一个编码器,但我确实建立了网站,所以我知道如何编辑HTML。我仍然缺少/没有看到问题出在哪里,这让我疯狂。 – Jen 2012-03-30 03:10:24