Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4055238
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:40:35+00:00 2026-05-20T14:40:35+00:00

Any help will be deeply appreciated as I’ve tried everything I can think of

  • 0

Any help will be deeply appreciated as I’ve tried everything I can think of to get this going but to no avail.

I am using Facebook’s updated (as of last week) fb:comments system but can not get the FB.Event.subscribe ‘comments.create’ and FB.Event.subscribe ‘comments.remove’ to work.

The page in question can be seen here.

I am initialising FB Asynchronously:

<script type="text/javascript">
//<![CDATA[
  window.fbAsyncInit = function() {
    FB.init({appId: '191116444251564', status: true, cookie: true, xfbml: true});
    FB.Event.subscribe('comments.create', function (response) {
//  console.log('create', response);
  //got response.... now query FQL to return total number of post counts
  FB.api(
    {
      method: "fql.query",
      query: "SELECT count FROM comments_info WHERE xid='2_plain-basmati-rice---rice-cooker' and app_id='191116444251564'"
    },
    function(fql_response) {
      $j.post('/recipes/2_plain-basmati-rice---rice-cooker/commented', {count: fql_response[0].count});
    }
  );
});

FB.Event.subscribe('comments.remove', function (response) {
  //got response.... now query FQL to return total number of post counts
//  console.log('remove', response);
  FB.api(
    {
      method: "fql.query",
      query: "SELECT count FROM comments_info WHERE xid='2_plain-basmati-rice---rice-cooker' and app_id='191116444251564'"
    },
    function(fql_response) {
      $j.post('/recipes/2_plain-basmati-rice---rice-cooker/commented', {count: fql_response[0].count});
    }
  );
});

  };
  (function() {
    var e = document.createElement('script');
    e.async = true;
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
//]]>
</script>

replacing both subscribe callbacks with a simple alert(‘tst’) doesn’t work.

I’ve tested the page using FB’s linter and no errors show up for that particular page.

Again, my thanks to anyone whole could offer any tips or pointers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:40:35+00:00Added an answer on May 20, 2026 at 2:40 pm

    I think the Event.subscribe is a little shaky at the moment. I had similar code working last week (around March 8) but today (March 13) I noticed that the Event.subscribe is not firing. BTW, I think it is now supposed to be comment.create, not comments.create. That is what was working for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basic question.. had to ask. Any help will be appreciated. Q: Why can't I
I'm sure there is a better to this. Any help will be greatly appreciated.
this is the error message .. any help will be appreciated . 2011-02-23 23:09:11
I’ve been going around in circles. Any help will be appreciated. I have submitted
This is driving me crazy, so any help will be appreciated. I am developing
This may sound very simple and off the track, but any help will be
Been banging our heads on this for two weeks now. Any help will be
I want to disable camera flash. How can I do that? Any help will
I'm hittig my head on this and i will be glad for any help.
any help you can give is very gratefully accepted. I've been looking at this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.