开发者

Adding facebook like button creates new page. Possible to merge/fix?

I created a facebook page for my company and invited my friends to like it. Win.

Now I want to add a like button on my company's outside website....

  • I "logged in as page" for my company.

  • I then clicked on the marketing tab > add a like button.

  • created the code using Iframe.

However, when I paste the code on my website, the likes (and all my hard work) starts over. It also creates a brand new page on facebook... argh.

Obviously, I can recreate my page on the newly created FB page and re-invite all my friends, but this wastes weeks of work and annoys my already pseudo friends. Any ideas before I do this?

For ref开发者_如何学Pythonerence, here is the like 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" />


You can change the href attribute to the page you've already created.
You cannot use the og-tags on your own homepage then but the Facebook-Page attributes are used.

so change

<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>

to

<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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜