【发布时间】:2019-12-23 01:48:14
【问题描述】:
My page,在添加 SSL 证书 (Let's Encrypt) 后,分享链接时无法让 Facebook 或 Twitter 获取预览。我已关注The Open Graph protocol 并包含以下开放图形标签:
<meta property="og:type" content="article" />
<meta property="og:title" content="Corner Timer: gently make you feel guilty on time-wasting apps" />
<meta property="og:url" content="https://lyminhnhat.com/resources/productivity/corner-timer-gently-make-you-feel-guilty-on-time-wasting-apps/" />
<meta property="og:description" content="Make you feel guilty for your unproductive curiosity" />
<meta name="twitter:site" content="@ooker777" />
<meta name="twitter:text:title" content="Corner Timer: gently make you feel guilty on time-wasting apps" />
<meta name="twitter:image" content="https://lyminhnhat.com/wp-content/uploads/2019/04/Screenshot_2019-04-11-11-31-39.png?w=640" />
<meta name="twitter:card" content="summary_large_image" />
但是,我使用的所有 3 个 Open Graph 检查器 - OpenGraphCheck.com、Abhinay Rathore's Open Graph Tester、Facebook's Object Debugger - 都说没有 Open Graph 工具。不过有一个例外:Iframely's Embed Codes
既然三个跳棋都有这个问题,可能这不仅仅是Facebook的问题,正如FB OpenGraph og:image not pulling images (possibly https?)所建议的那样。尽管如此,即使我尝试仅使用 html 链接,使用<html prefix="og: http://ogp.me/ns#"> 去除结尾空白,也没有任何改变。
This person 表明它可能是服务器问题。你知道为什么会这样吗?
相关:Would having a fresh website with SSL already avoid Open Graph problem?
【问题讨论】:
-
你有没有试过先把你的文字改成全英文,看看是否有效?
-
@whalesingswee 是的,我也在我的英语域上进行测试。查看我的编辑
-
我在这里检查过应该也是服务器问题,FB 调试器无法抓取您的网站。返回空白,一定和服务器配置有关,是共享主机还是VPS?
-
您也可以检查一下:redirectdetective.com 您的网站似乎没有在应有的地方结束?
-
我使用共享主机。使用那个检查器,我只得到
An unknown error or HTTP state has occured. This will be investigated.
标签: url ssl-certificate meta facebook-opengraph