【发布时间】:2021-07-01 22:54:13
【问题描述】:
我的 OG 标签有问题。它在 <head> 中正确显示,但 Facebook Open Graph 返回错误响应代码。
这里是网址:https://www.sentosa.com.sg/en/get-inspired/sentosa-guides/mums-recommend-fun-activities-on-sentosa/
<head>
<title data-react-helmet="true">Mums Recommend: Fun Family Activities On Sentosa</title>
<meta data-react-helmet="true" property="og:title" content="Mums Recommend: Fun Family Activities On Sentosa"/>
<meta data-react-helmet="true" name="keywords" content="things to do, fun activities in sentosa, family"/>
<meta data-react-helmet="true" name="title" content="Mums Recommend: Fun Family Activities On Sentosa"/>
<meta data-react-helmet="true" name="description" content="It’s true – mothers know best!"/>
<meta data-react-helmet="true" property="og:description" content="It’s true – mothers know best!"/>
<meta data-react-helmet="true" property="og:url" content="https://www.sentosa.com.sg/get-inspired/sentosa-guides/mums-recommend-fun-activities-on-sentosa"/>
<meta data-react-helmet="true" property="og:image" content="https://www.sentosa.com.sg/-/media/sentosa/article-listing/articles/2021/mums-recommended-fun-activities-to-do-in-sentosa/mums_hero.jpg?revision=7e8e6d47-8f17-4686-8cf2-b34dc387a461"/>
<link data-react-helmet="true" rel="canonical" href="https://www.sentosa.com.sg/get-inspired/sentosa-guides/mums-recommend-fun-activities-on-sentosa/"/>
<link data-react-helmet="true" rel="shortcut icon" href="https://www.sentosa.com.sg/-/media/sentosa/features/header/favicon-new.png?revision=b492cc89-69c8-448d-a928-15c3e56b2e88"/>
<script data-react-helmet="true" async="true" src="https://assets.wogaa.sg/scripts/wogaa.js"></script>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/>
<meta name="theme-color" content="#000000"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=DC-8858992"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("config","DC-8858992")</script>
<link href="/dist/sentosa/static/css/main.24239852.chunk.css" rel="stylesheet">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-536FZZK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div id="root">
<style data-styled="bhTETV gthcLv jWNKzs ffTmSH gzHAtR gXecBG bzgUGP cOeqpc kdJMol eUYsaW kHNbps ftjTQW stNPD cTYkaX eXgrYR kvnZyw dUFPwu dfcRpc kZrfbx cNdvkR fXtlEt PaNCb" data-styled-version="4.4.1">
【问题讨论】:
-
您的服务器正在以 503 Service Unavailable 响应响应 Facebook(它可能响应 Twitter,就像我无法获得要验证的卡一样)。我通过 Facebook 的用户代理
facebookexternalhit/1.1和 Twitter 的Twitterbot/1.0使用 Rex Swain viewer 访问了您的 URL - 两者都有效。消息应用程序 KakaoTalk 能够访问您的 OG 信息并发送丰富的链接预览。您可以与您的主机核实,因为这似乎是您的主机阻止某些机器人的问题。 一个不相关的注释 - 你的 head 标签应该在 html 标签之后。 -
谢谢里奇。会让我们的开发人员对此进行调查。此问题仅在我们为整个站点实施 Azure Front Door 时发生。不确定这是否是导致此问题的原因,