首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Facebook在分享我网站的HTTPS链接后显示空白图片和预览

Facebook在分享我网站的HTTPS链接后显示空白图片和预览
EN

Webmasters Stack Exchange用户
提问于 2019-09-19 01:19:22
回答 1查看 672关注 0票数 2

我以前的网站只是HTTP。我用那个网站和我的朋友分享公共信息。我喜欢在Facebook上发布我想要分享的新闻,当我在Facebook上发布一个链接(HTTP链接,因为我的网站仍然是HTTP)时,它会正确地从我的网站上提取og标签。

昨天,我刚刚通过免费的CloudFlare SSL将我的站点从HTTPS移到HTTPS。我重定向我的网站到HTTPS和检查混合内容错误,没有。现在,当我在Facebook上分享我的帖子(现在是HTTPS)时,它只是显示我的域名(example.com)作为标题和描述,而不是我在元标记中指定的og:titleog:description

我的朋友说我在我的网站上设置了og标签:

代码语言:javascript
运行
复制
<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的缓存问题吗?

EN

回答 1

Webmasters Stack Exchange用户

发布于 2019-09-20 18:31:17

我将假设您的帖子中的屏幕截图是在这里找到的Facebook调试器工具:https://developers.facebook.com/tools/debug/sharing

我注意到的第一件事是,您将被返回一个响应代码0。您应该得到200的响应代码。

这促使我认为这是一个缓存问题,所以我亲自通过Facebook社交分享调试器检查了域。这是我的结果:

如您所见,我收到了五百零三的响应代码。由于您是从HTTP迁移到HTTPS的,这很可能意味着您的主机服务器(S)有问题。

我将从一张机票查询503响应代码到您的主机提供商。一旦这个问题得到了来源和解决,您的OG映像应该按预期填充。

票数 2
EN
页面原文内容由Webmasters Stack Exchange提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://webmasters.stackexchange.com/questions/125242

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档