2012-01-22 110 views

回答

1

您應該添加OpenGraph元標記位於您在鏈接按鈕一樣網址的頁面。用戶點擊Like Button後,Facebook會抓取該頁面併發布OG標籤的內容。

瞭解更多關於Like Button documentationOpen Graph protocol

6

使用Open Graph Tags:

將這個標籤在你的頁面頭部分:

<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"> 
<head> 
<meta property="og:image" content="custom image path" /> 
<meta property="og:site_name" content="name of the website" /> 
<meta property="og:title" content="custom title" /> 
<meta property="og:url" content="url of the page" /> 
<meta property="og:description" content="custom description" /> 
<meta property="og:type" content="website/article/game etc.." /> 
</head> 

使用Linter檢查您的自定義屬性已經影響。

More about Opengraph tags

0

雖然同時作爲其他評論者說,你需要創建一個Facebook應用程序,然後將需要在最後一個安全的畫布URL要驗證它是真實的。因此障礙是相當高的。