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

Open Graph协议不适用于我的php网站,php,whatsapp,Php,Whatsapp,当我通过Whatsapp分享我的网站时,我正在尝试添加一个带有一些细节的拇指指甲图片。 我的共享链接按钮位于以下位置 <!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&

当我通过Whatsapp分享我的网站时,我正在尝试添加一个带有一些细节的拇指指甲图片。 我的共享链接按钮位于以下位置

<!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>
<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>

我的Whatsapp测试
我的测试
我的网站,我需要显示在缩略图如下

<!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>
<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>

你好
现在我只需浏览我的手机并点击Whatsapp 2按钮。它打开我的Whatsapp如下

<!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>
<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>


除了“拇指指甲”,一切正常logo.png大小为31.9KB,尺寸为256 X 256。请帮我把http改成https。现在它运行良好。(跟随来自的评论)

您可能需要使用https才能在WhatsApp中显示,非常感谢。今天我将我的网站升级到https,现在它运行良好