SEO Facebook Comment
force it to show the comment immediately? (2 posts)

  1. JFrankParnell
    Posted 4 years ago #

    I understand that the plugin doesnt show the comment in the wp comments until that particular page is reloaded. However, I am showing 'recent comments' on a sidebar, which means if that page doesnt get reloaded, the comment will not be in the wp database, and therefore not show on my sidebar.

    I see two work arounds for this, or maybe you could suggest another.

    Cron could be made to look for new comments in all the posts and pages. This seems like a lot of resources, probly not a good idea.

    Fb js has an event subscribe thing, which can watch for comments being made and then use js to refresh the page, which i assume would pull in the comment as i want.

    Thanks, I really enjoy this plugin,


  2. JFrankParnell
    Posted 4 years ago #

    Yeah, i just got it to refresh the page by the event.subscribe:

    window.fbAsyncInit = function() {
    				appId : '<?=fbid?>',
    				status : true, // check login status
    				cookie : true, // enable cookies to allow the server to access the session
    				xfbml : true // parse XFBML
    		FB.Event.subscribe('comment.create', function(response) {
    		  //alert('comment posted');

    I am inserting this code manually in my theme and have commented out the seofb plugin code that does this (various reasons of my own). But if you just want to stick

    FB.Event.subscribe('comment.create', function(response) {
    		  //alert('comment posted');

    into the code of the function loadJS() in seofacebook.php, i'm sure that would work.

    However, @Dev, I wouldnt mind hearing your feedback on this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SEO Facebook Comment
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic