How to embed Facebook Like button / Comment box on your website?

Like button, Comment box from facebook

Nowadays, more and more people using social network such as Twitter, Facebook,.... They share almost everything on those social network, the more friend they have, the more views of things they shared can get.
So if you have a forums, or a website, and you have some interesting, useful article, then the reader want to share it to their friend through social network, you have to embed those social network plugin on your site.

Today, I'll show you how to embed the Facebook Plugins to your sites.

First, you must have a website (must be your own website/blog/forum)

Second, you insert the code below into your sites where your want the plugin to display:
 - Like button:

<iframe src="//www.facebook.com/plugins/like.php?href=[YOUR SITE URL]&layout=standard&action=like&show_faces=true&share=true&height=80&appId=[YOUR FACEBOOK APP ID]" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
 - Comment box:
<iframe src="//www.facebook.com/plugins/comments.php?href=[YOUR SITE URL]&action=comment&appId=[YOUR FACEBOOK APP ID]" scrolling="yes" frameborder="0" style="border:none; width: 100%; overflow:hidden; height:400px;" allowTransparency="true"></iframe>
Next, replace [YOUR SITE URL] with the url of your site/forums(thread/post), and if you have FACEBOOK APP ID, replace [YOUR FACEBOOK APP ID] by your facebook application id.

Now you done, save your code, and enjoy the result.

P/S: This can be done in Mobile Application such as Android or iOS.
http://blogbynoob.blogspot.com/2013/12/how-to-embed-facebook-like-button.html
Here is the example:

Like:

Comment box:

Kommentar veröffentlichen

Spam for back-link will be remove

Sponsors