Facebook is a popular social media portal to share updates and useful links for friends. This post explains how to integrate Facebook comments plugin script into Blogger and Wordpress blogs. Just few lines of code, I feel it's very useful for generating blog traffic.
Live Demo Blogger Live Demo Wordpress
Developer Facebook providing awesome social plugins for sharing things to friends. First you have to create a Facebook application then you can generate the FB script code click here
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments xid="POST_ID" numposts="10" width="425" publish_feed="true"></fb:comments>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments xid="POST_ID" numposts="10" width="425" publish_feed="true"></fb:comments>
Blogger
Find this line of code at blogger Design - Edit HTML enable Expand Widget Templates check box <b:includable id='comments' var='post'>
Copy and paste the following code below the line above.
<b:includable id='comments' var='post'>
<h4>Facebook Comments</h4>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments expr:xid="data:post.id" numposts="10" width="425" publish_feed="true"></fb:comments>
<h4>Facebook Comments</h4>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments expr:xid="data:post.id" numposts="10" width="425" publish_feed="true"></fb:comments>
Wordpress
Find this line of code at Wordpress theme 'single.php' here the path wp-content -> themes -> Your_Theme -> single.php<?php comments_template(); ?>
Copy and paste the following code above the line above:<h4>Facebook Comments</h4>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments xid=">?php the_ID(); ?>" numposts="10" width="425" publish_feed="true"></fb:comments>
<?php comments_template(); ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID
&xfbml=1"></script>
<fb:comments xid=">?php the_ID(); ?>" numposts="10" width="425" publish_feed="true"></fb:comments>
<?php comments_template(); ?>
15 comments:
Keep on working, great job!
Thanks , I've recently been searching for info about this subject for ages and
yours is the best I've came upon so far. However, what in regards to the bottom line?
Are you sure in regards to the supply?
Heya i am for the first time here. I came across this board and I find
It truly useful & it helped me out much. I hope to give something back and help others like you aided me.
Quality articles is the crucial to interest the people to go to see the
web site, that's what this web site is providing.
Hello very nice site!! Man .. Excellent ..
Wonderful .. I'll bookmark your website and take
the feeds additionally? I am glad to search out numerous helpful info right here in the submit,
we want develop extra techniques in this regard, thanks
for sharing. . . . . .
Terrific post but I was wondering if you could write a litte
more on this topic? I'd be very thankful if you could elaborate a little bit more.
Kudos!
Thanks for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your next write ups thanks once again.
Its such as you learn my thoughts! You appear to grasp so
much approximately this, such as you wrote the e book
in it or something. I think that you just can do with a few %
to pressure the message home a little bit, but instead of that, this is fantastic blog.
A fantastic read. I'll definitely be back.
Aw, this was an extremely nice post. Finding the time and actual effort to make a superb article… but what can I say…
I put things off a whole lot and don't manage to get anything done.
Hi there, I found your blog by means of Google even as searching for
a comparable matter, your site got here up, it seems good.
I've bookmarked it in my google bookmarks.
Hi there, just became alert to your blog through Google, and located that it's really informative.
I am gonna watch out for brussels. I will appreciate in case you proceed this in future.
Numerous people shall be benefited from your writing. Cheers!
Greetings I am so delighted I found your blog page, I
really found you by error, while I was looking on Aol for something else,
Nonetheless I am here now and would just like to say kudos for a tremendous
post and a all round thrilling blog (I also love the theme/design), I don't have time to go through it all at the moment but I have saved it and also added in your RSS feeds,
so when I have time I will be back to read more, Please do keep
up the superb work.
Hey very interesting blog!
Magnificent web site. A lot of useful information here.
I am sending it to a few pals ans additionally sharing in delicious.
And naturally, thanks to your sweat!
A motivating discussion is worth comment. I believe that you should
write more about this topic, it might not be a taboo subject but usually people don't talk
about these issues. To the next! Many thanks!!
If you desire to get a good deal from this article then you have
to apply these methods to your won web site.
Post a Comment