Find the right theme for you. Browse through our gallery of expertly-crafted free SMF themes to find the perfect one for your needs.

Facebook Comments for SMF

Mick in Tutorials on Mar 28, 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

Tagged with: facebook plugin smf comments 


Mick

Mick G

idesignsmf.com

    

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF 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 and has a weakness for Tacos and Pizza.


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

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

good post!
4

hi master, can you teach me how to fix this error.. i really like your mod in my forum... thanks
5

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

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




Latest Discussions

Join the conversation

Our Most Popular Features