簡體   English   中英

我如何使圖像顯示在html網站正文中的facebook鏈接中?

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

我正在使用FB App,我希望網站上顯示的結果圖像帶有我在Facebook上發布的鏈接,以便人們可以看到我的結果圖像。

我怎樣才能做到這一點? 請幫忙。

您必須通過以下方式使用Facebook API的og:image屬性:

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

你可以找到有關的Open Graph協議的更多信息點擊這里和關於Facebook內容共享 在這里

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM