Open Graph 协议不适用于我的 php 网站

Open Graph protocol not working for my php website

我想在通过 Whatsapp 分享网站时添加缩略图,其中包含一些关于我网站的详细信息。 我的分享link按钮放在http://MY_IP/sms/index.php如下

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>My Whatsapp Test</title>
        <link rel="shortcut icon" href="favicon_2.png" type="image/x-icon" />
    </head>
    <body>
        <h1>My Tests</h1>

        <div style="margin-top: 50px;">
            <a href="whatsapp://send?phone=+918129664901&text=<?php echo urlencode('http://MY_IP/sms/test.php'); ?>" data-action="share/whatsapp/share" style="background-color: green;color: #fff;font-size: 30px;font-weight: bold;width:150px;padding: 5px;" >Whatsapp 2</a>
        </div>
    </body>
</html>

我需要缩略图显示的网站是http://MY_IP/sms/test.php如下

<html>
<head>
<meta property="og:title" content="How to change the address bar color in Chrome, Firefox, Opera, Safari" />
<meta property="og:description" content="How to change the address bar color in Chrome, Firefox, Opera, Safari" />
<meta property="og:url" content="http://MY_IP/sms/test.php" />
<meta property="og:image" content="http://MY_IP/sms/logo.png" />
</head>
<body>
    <h1>Hi</h1>
</body>
</html>

现在我只是在我的手机 phone 中浏览 http://MY_IP/sms/index.php 并点击 Whatsapp 2 按钮。它打开我的 Whatsapp 如下

除了 "Thumb Nail" 之外,一切正常。 logo.png 大小为 31.9KB,尺寸为 256 X 256。请帮帮我

刚刚将 http 更改为 https。现在它工作正常。 (关注 Sky 的评论)