Hi
Everybody, How are you? I am well. Now I write how to add facebook
comment box on your website. It’s easy and simple. But look like beautiful and
anybody can comment on your post by log in facebook account.
See the Picture of Facebook Comment box.
First you need to include the JavaScript on your page once, ideally right after the opening
<body>
tag.
<div
id="fb-root"></div>
<script>(function(d,
s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src =
"//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1415269348745829&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document,
'script', 'facebook-jssdk'));</script>
Then add this code for your plugin wherever you want the plugin to appear on your page.
<div
class="fb-comments" data-href="http://blogger.com"
data-numposts="5" data-colorscheme="light"></div>
Note: Change only the bold text "http://blogger.com" and set your website.
0 comments:
Post a Comment