我怎样才能使图像出现在 html 网站正文中的 facebook 链接中


How Can i make an image to appear in facebook link which is in the body of html website?

我正在开发一个FB应用程序,我希望我网站上的结果图像与我在Facebook上发布的链接一起显示,以便人们可以看到我的结果图像。

我该怎么做?请帮忙。

您必须通过以下方式使用 Facebook API 的属性og:image

<html>
    <head>
        …
        <meta property="og:image" content="path_of_image" />
    </head>
    <body>
        …
    </body>
</html>

您可以在此处找到有关开放图形协议的更多信息,并在此处找到有关Facebook内容共享的更多信息