For SMF 2.0 series only!!
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&xfbml=1"></script><fb:comments href=', $scripturl, '?topic=', $context['current_topic'], ' num_posts="2" width="500"></fb:comments></div>';
//Facebook Comments
Test it here: http://www.bluedevilcustoms.com/index.php/topic,217.msg573.html#msg573
Added moderation control ;)
Thanks! This looks awesome!
Hi, sorry if off topic. But may you teach me how to add facebook like button in every post made?
Thanks in advance.
Nice one, bluedevil! ;)
Could you add twitter to it as well ?
Great tip, I will try this on my forum.
Thanks bluedevil. ;)
That will show up only with the first post ?
Yes, it will show up only in the first post.
Thanks!Looking good.
Elan,
Thanks Blue Devil ! Looks great, much apprecated.
Also used in my website, check example: http://www.weatherservice.be/index.php
I do get one error: can u check it?
Regards
Error like this: Warning: 'http://www.weatherservice.be/index.php?topic=27 is unreachable.'
People can write in the free space but we don't see their reactions..
Thanks i was looking for this ... it is really helpful
This doesn't work with 1.1.13 and Facebook integration mod.
how to add facebook likes to our first post ,any scripts are there for that
NICE TRICKS MAN ITS WORKING REALLY THANKS I AM PLAYING WITH MY FRIENDS WITH THIS CODE
Thank tutorial trick
perfect on page I learn it ;D
Great lil trick...but can we call images to post on facebook along with the comment also ?
well its nice trick dear
surely i wil try it out
สวยงามมาก ;D
Thanks!
This is a great feature. Definitely going to be adding it in some variation to my forum. Not sure I like how it looks in the layout... maybe some type of sidebar?
haha, that's perfect, it works fine ;-)
Very Good :D thank you :D
ohhhh that's nice tricks .thanks for shearing
Great tips, thank you for sharing Mick.
Good job and useful
This trick is amazing and I'm Going to apply too. 8)
Where can i see the demo ?
It's Nice Trick. Thanks for sharing it with us.
does it still works on 2.0.1.?
anybody can share a links to demo please..