My page, after adding SSL certificate, cannot have preview fetched by Facebook or Twitter when sharing the link. I have followed The Open Graph protocol and include the following open graph tags:
<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 property="article:published_time" content="2019-04-26T10:50:30+00:00" />
<meta property="article:modified_time" content="2019-08-06T07:11:42+00:00" />
<meta property="og:site_name" content="Lý Minh Nhật" />
<meta property="og:image" content="https://lyminhnhat.com/wp-content/uploads/2019/04/Screenshot_2019-04-11-11-31-39.png" />
<meta property="og:image:width" content="480" />
<meta property="og:image:height" content="800" />
<meta property="og:locale" content="en_US" />
<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" />
Since all three checkers have problem with this, probably this is not just a problem of of Facebook, as suggested in FB OpenGraph og:image not pulling images (possibly https?). Nevertheless, nothing changes even though I have tried using html links only, stripping end white space, using <html prefix="og: http://ogp.me/ns#">.
This person suggests that this may be a server issue. A misconfiguration, perhaps. Do you know why this happens or how to identify the problem?
I don’t see any problems with your certificate or your HTTPS configuration. Your certificate is correct and your configuration is compatible with a wide range of clients. So I think the most likely case is that the compatibility problem lies elsewhere—that it’s not an HTTPS-related problem.
I did notice that two of the links you shared are testing Open Graph data on https://quảcầu.com/ rather than https://lyminhnhat.com/. I’m not sure if that was intentional, as the content on the two sites is completely different.
I thought that perhaps the use of accented Vietnamese characters in the domain quảcầu.com could be confusing some of the software here. This is a minor possibility, but on the other hand the certificate for the IDN ASCII form xn--qucu-hr5aza.com is valid and so if the accented characters are any part of the problem, it’s still not a problem related to HTTPS.
Another thing that I noticed is that both sites appear to have some kind of measure (perhaps based on examining User-Agent: headers) to block non-browser access. In particular, when I access the sites with curl, they return no content at all, whereas when I access them with a web browser, they return site content. This could very likely be a problem because the bots that are crawling for Open Graph data may send User-Agent strings that accurately identify them as bots rather than browsers. If your web server then blocks these bots, presumably they won’t be able to see the data you intended to show them!
Wow, thank you for your detailed help. I really appreciate that.
Yes, both domains are mine. They are all hosted in one share hosting, and after I add the certification they all have problems. The Vietnamese site, quảcầu.com or xn--qucu-hr5aza.com, is newly installed and should have no problem in WordPress sourcecode or plugin conflict.
Here is the output when using curl for both sites in https:
D:\temp>download https://lyminhnhat.com/ -h
SystemDefault
SSL-Zertifikat is valide
SSL-Zertifikat is valide
Error (1): Die zugrunde liegende Verbindung wurde geschlossen: Die Verbindung wurde unerwartet getrennt..
ConnectionClosed
3
D:\temp>download https://lyminhnhat.com/ -h
SystemDefault
SSL-Zertifikat is valide
SSL-Zertifikat is valide
Error (1): Die zugrunde liegende Verbindung wurde geschlossen: Die Verbindung wurde unerwartet getrennt..
ConnectionClosed
3
33597,23 milliseconds
33,60 seconds
(1) is ok, (2) is closed unexpectly after 2 seconds, (3) is ok, (4) is closed unexpectly after 33 seconds.
May be a bot detection, may be an instable server.