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个开放图检查器-OpenGraphCheck.com,Abhinay Rathore's Open Graph Tester,Facebook's Object Debugger-都说没有开放图工具。但是有一个例外:Iframely's Embed Codes
由于所有三个检查者都对此有疑问,所以这可能不仅仅是FB OpenGraph og:image not pulling images (possibly https?)中所建议的Facebook问题。但是,即使我仅尝试使用html链接,使用<html prefix="og: http://ogp.me/ns#">
去除末尾空格,也没有任何改变。
This person建议这可能是服务器问题。你知道为什么会这样吗?
相关:Would having a fresh website with SSL already avoid Open Graph problem?
答案 0 :(得分:0)
在我的情况下,似乎该搜寻器只是一个错误。对于这个问题,我有自己的规范答案,希望对您有所帮助:FB OpenGraph og:image not pulling images (possibly https?)