WordPress.org

Forums

Facebook
Comments (1 post)

  1. fouldsy99
    Member
    Posted 2 years ago #

    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

    Regards

    http://wordpress.org/plugins/facebook/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.