添加facebook like按钮可创建新页面。可以合并/修复?

时间:2011-03-25 14:33:09

标签: facebook facebook-like opengraph facebook-page

我为我的公司创建了一个facebook页面并邀请我的朋友喜欢它。取胜。

现在我想在我公司的外部网站上添加一个类似按钮....

  • 我为我的公司“以网页登录”。

  • 然后我点击营销标签>添加一个类似的按钮。

  • 使用Iframe创建代码。

但是,当我将代码粘贴到我的网站上时,喜欢(以及我所有的努力工作)重新开始。它还在facebook上创建了一个全新的页面...... argh。

显然,我可以在新创建的FB页面上重新创建我的页面并重新邀请我的所有朋友,但这会浪费数周的工作并使我已经伪造的朋友烦恼。我之前有什么想法吗?

供参考,以下是iframe:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.mywebsite.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

打开图表......

<meta property="og:title" content="my title" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.mywebsite.com" />
<meta property="og:image" content="http://www.mywebsite.com/image.png" />
<meta property="og:site_name" content="site name" />
<meta property="fb:app_id" content="xxxxxxxxx" />

1 个答案:

答案 0 :(得分:1)

您可以将href属性更改为您已创建的页面 您不能在自己的主页上使用og-tags,但会使用Facebook-Page属性。

所以改变

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.mywebsite.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2F*your facebook page (with escaped slashes and so on)*&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
相关问题