gpt4 book ai didi

facebook-like - 正文中的元标记

转载 作者:行者123 更新时间:2023-12-04 15:25:40 24 4
gpt4 key购买 nike

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

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.



但是在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>

我究竟做错了什么?

最佳答案

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

编辑

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

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

关于facebook-like - 正文中的元标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9820239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com