Facebook CommentCode

Home Forums Free wallpaper script Feature Requests Facebook CommentCode

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  edesign 11 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #893

    edesign
    Member

    I want a Facebook Comment box on a wallpaper.php. How is this code correctly?
    .
    $r .= ‘<div class="fb-comments" data-href="” data-num-posts=”4″ data-width=”728″>’;

    This is not really correctly, i have a white site

    #898

    veppa
    Member

    To integrate Facebook comments put:

     <meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>

    in header of /user-content/templates/base/layouts/frontend.php line 13 with your facebook user id.

    then paste code given below in /user-content/templates/base/views/index/wallpaper.php on line 48

    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:comments href="<?php echo Thumbgrid::makeGoodUrl($wallpaper->id, 'wallpaper', $wallpaper->name);?>" num_posts="3" width="300"></fb:comments>

    change num_posts and width values to match your requirements.

    remove  default commenting lines

    $r .= Thumbgrid::displayComments($comments); 
    $r .= Thumbgrid::commentForm($wallpaper);
    #906

    edesign
    Member

    ahh tanks veppa but i have this now [html]$r .= ”;[/html] it work

    #910

    edesign
    Member

    does not appear, sorry

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.