Easiest way to add Facebook Comments on thread

guclusat

Tanınmış Üye
Süper Moderatör
vB Version: 4.x.x

Mod Version: 1.00

hi friends

i was using the old modification to add facebook comments on my vbulletin forum. but it was giving multiple errors and problems.


here is the method.

1) Enable facebook from settings

2) go to show thread templates / SHOWTHREAD

FIND: {vb:raw similarthreads}

paste this code above

PHP:
<!-- FB Comments --><div class="fb-comments" data-href="http://www.nidokidos.org/{vb:raw relpath}" data-num-posts="2" data-width="470"></div> <!-- /FB Comments -->

=>Please dont forget to change my website name with your own website forum home page url.


=>Note:- i hope you have given your facebook application API key in your vbulletin facebook settings.

here is screen shot of the modification , its working fine.

ke6byu.jpg
 
Add Facebook comments to threads

vB Version: 4.0.2

This modification will integrate Facebook comments directly into the posts, at the bottom of the page.

What is needed for this modification:
  • A standard facebook account.
  • A facebook application, anyone can set one up and it's simplehttp://www.facebook.com/developers/createapp.php Be sure to add your site URL to the "Connect URL" and take note of your API Key.

Once that is done it's time to add the code to the SHOWTHREAD template.

Find:


PHP:
{vb:raw similarthreads}
Add this above:


PHP:
    <!-- FB Comments -->
    <h4 class="threadinfohead"><span class="optiontitle">Facebook Comments</span></h4>
    <div id="thread_tags_list" class="thread_info_block">
        <div class="inner_block">
            <div id='tag_list_cell'>
<script src="http://static.ak.connect.facebook.com/connect.php/en_US" type="text/javascript"></script><script type="text/javascript">FB.init("YOUR API KEY");</script><fb:comments> </fb:comments>
            </div>
        </div>
    </div>
    <!-- /FB Comments -->
Be sure to add your API key.

screen.JPG
 
Geri
Yukarı