Jiew Meng

Web Developer, Computer Science Student

5 Jun 2011

andreasolsson asked: Hi Jiew Meng,

I'm using the modern1 theme and I love it. Is it possible to implement facebook comments/likes? If you could help me out that would be great.

Also i'm not sure why the likes are not working for me?

Thanks for a great theme.

Yes its possible to implement FB comments & likes. But you will need basic knowledge of HTML.

On line 2 <html ...>, it should look like

<html lang="en-US" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

Around line 737 (before </body>) paste

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

then around line 646 (before </footer>)

<fb:like href="{Permalink}" send="true" width="450" show_faces="true" font=""></fb:like>

for comments, around line 638 add

<fb:comments num_posts="2" width="510" colorscheme="light"></fb:comments>

for you convinence you can grab the code from mediafire

this is all untested code …

Notes

  1. jiewmeng posted this

Search

Loading