2012-01-22 77 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要验证它是真实的。因此障碍是相当高的。