2011-03-25 38 views
3

我爲我的公司創建了一個Facebook頁面,並邀請我的朋友們喜歡它。贏得。添加Facebook like按鈕創建新頁面。可能合併/修復?

現在我想添加一個按鈕一樣對我公司的網站外....

  • 我爲我的公司「的頁面登錄」。

  • 然後我點擊營銷標籤>添加一個像按鈕。

  • 使用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> 

的Open Graph ...

<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

您可以href屬性更改爲您已創建的頁面。
您不能在自己的主頁上使用og標籤,但是使用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> 
+0

這喜歡到我的Facebook頁面相關聯,但對於搜索引擎優化的原因,我寧願用我的網站外相關的喜歡。這可能嗎? – John 2011-03-25 16:43:53

+0

不要以爲是。謝謝你的答案。 – John 2011-03-25 21:48:40

+0

這是我在同一個問題上尋找的答案。但是,什麼是'逃脫斜線'等?你能向我證明嗎? – 2011-07-22 21:46:08