Facebook Comments for SMF

in Tutorials on 28 Mar 2011


Add Facebook Comments to your first post.

Demo: The new Piaa's lit up....

Open: Themes/default/index.template.php

Find:
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />

Add before:
        <meta property="fb:admins" content="YOUR FACEBOOK USER ID NUMBER GOES HERE"/>

Replace YOUR FACEBOOK USER ID NUMBER GOES HERE with your facebook ID.

Open:
Themes/default/Display.template.php

Find:
// Maybe they want to report this post to the moderator(s)?

Add after:

//Facebook Comments
    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br />
<div id="fb-root"></div><div align="left"><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:comments href=', $scripturl, '?topic=', $context['current_topic'], ' num_posts="2" width="500"></fb:comments></div>';
//Facebook Comments



idesignSMF Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF.com and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time.

idesignSMF.com | SimpleMachines.org



8 Comments

Very nice  :o


Como puedo hacer que los comentarios que se envian en la caja de texto, sen lo que se me publiquen en mi perfil de facebook?

No quiero agregar  el sistema de comentarios de Facebook, sino usar el sistema de SMF,pero integrarlo a F!
#1
Me imagino uno tendra que hacer un app para facebook.
#2
Quote from: bluedevil on 30 Mar 2011
Me imagino uno tendra que hacer un app para facebook.

Pens? que hab?a  un c?digo sencillo de f?cil aplicaci?n, como ?ste Tip.
#3
hi master, can you teach me how to fix this error.. i really like your mod in my forum... thanks
#5
Quote from: xybuffer on 22 Sep 2011
hi master, can you teach me how to fix this error.. i really like your mod in my forum... thanks

I hope you're using SMF 2.0  :-\
#6
No master, my version is 2.0. I already fixed the problem. It was the proper configuration on Facebook App ID. I did setup correctly and it works fine.. Thanks...
#7
Quote from: xybuffer on 22 Sep 2011
No master, my version is 2.0. I already fixed the problem. It was the proper configuration on Facebook App ID. I did setup correctly and it works fine.. Thanks...
awesome ;)
#8

rocket_launch

Free Forever. Our themes will always be free. Forever. Period.