我以前的网站只是HTTP。我用那个网站和我的朋友分享公共信息。我喜欢在Facebook上发布我想要分享的新闻,当我在Facebook上发布一个链接(HTTP链接,因为我的网站仍然是HTTP)时,它会正确地从我的网站上提取og标签。
昨天,我刚刚通过免费的CloudFlare SSL将我的站点从HTTPS移到HTTPS。我重定向我的网站到HTTPS和检查混合内容错误,没有。现在,当我在Facebook上分享我的帖子(现在是HTTPS)时,它只是显示我的域名(example.com
)作为标题和描述,而不是我在元标记中指定的og:title
和og:description
。
我的朋友说我在我的网站上设置了og
标签:
<title>My site</title>
<meta name="description" content="Example description" />
<meta name="robots" content="follow,index" />
<link rel="canonical" href="https://example.com/url-path/" />
<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Mysite">
<meta property="og:description" content="Example description">
<meta property="og:url" content="https://example.com/url-path/">
<meta property="og:site_name" content="MySite">
<meta property="article:publisher" content="https://www.facebook.com/examplefbpage">
<meta property="article:author" content="https://www.facebook.com/example">
<meta property="article:published_time" content="2019-09-14T11:49:14+00:00">
<meta property="article:modified_time" content="2019-09-19T02:39:08+00:00">
<meta property="og:updated_time" content="2019-09-19T02:39:08+00:00">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Mysite">
<meta name="twitter:description" content="Example description">
<meta name="twitter:site" content="@exampletwitteruser">
<meta name="twitter:creator" content="@exampletwitteruser">
我该怎么解决这个问题?这可能是Facebook的缓存问题吗?
发布于 2019-09-20 18:31:17
我将假设您的帖子中的屏幕截图是在这里找到的Facebook调试器工具:https://developers.facebook.com/tools/debug/sharing。
我注意到的第一件事是,您将被返回一个响应代码0。您应该得到200的响应代码。
这促使我认为这是一个缓存问题,所以我亲自通过Facebook社交分享调试器检查了域。这是我的结果:
如您所见,我收到了五百零三的响应代码。由于您是从HTTP迁移到HTTPS的,这很可能意味着您的主机服务器(S)有问题。
我将从一张机票查询503响应代码到您的主机提供商。一旦这个问题得到了来源和解决,您的OG映像应该按预期填充。
https://webmasters.stackexchange.com/questions/125242
复制相似问题