Support » Plugin: Facebook » Comments

  • How can I retrieve a list of recent comments in Facebook given URL from the Facebook Graph API to add to a side widget?

    How can I display recent facebook comments, I have three tabs on my website: here

    Tabs are Headline – Popular – Comments

    First two works fine, but comments doesn’t as its setup to use default comments system rather than the facebook comments that I use.

    Here is the code that would need replacing:

    <p> <label for="<?php echo $this->get_field_id( 'com_num' ); ?>">Number of recent comments:</label>
    <input id="<?php echo $this->get_field_id( 'com_num' ); ?>" name="<?php echo $this->get_field_name( 'com_num' ); ?>" value="<?php echo $instance['com_num']; ?>" style="width:20%;" /></p>

    How can I change this to display recent facebook comments?

    I have tried:

    <p><div class="fb-comments" data-href="<?php the_permalink(); ?>" data-numposts="5" data-colorscheme="light"></div></p>

    Many thanks


  • The topic ‘Comments’ is closed to new replies.