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 7493657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:06:31+00:00 2026-05-29T17:06:31+00:00

I am using Facebook comment box plugin: <fb:comments href=${myPageUrl} num_posts=20 width=630></fb:comments> Every thing is

  • 0

I am using Facebook comment box plugin:

<fb:comments href="${myPageUrl}" num_posts="20" width="630"></fb:comments>

Every thing is working fine. The problem is that I want to store the comment posted into my database. Is there any way to fetch the text posted on the comment box.

I am using the following js to catch comment-create event.

FB.Event.subscribe('comment.create', function(response) {        
        alert(response.commentID)
});

I’m getting some commentId from this but I don’t know how to fetch the exact comment posted on a particular comment-create event.

  • 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-29T17:06:31+00:00Added an answer on May 29, 2026 at 5:06 pm

    Coomie: Actually whenever a comment is posted, I catch the event thru ‘comment.create’. I was able to catch the event but I was wondering how to get the comment(text) posted at that particular event. Like event.text or event.comment but there was no direct method found

    So, now I am manipulating it with fql. Which is somewhat similar to you example. First retrieving the whole list and then selecting the top one.
    My sample code is below:

    FB.Event.subscribe('comment.create', function(response) {
          FB.api({
            method: 'fql.query',
            query: "SELECT post_fbid, fromid, object_id, text, time from comment WHERE  object_id in (select comments_fbid from link_stat where url ='${PageUrl}') order by time desc limit 1"
          },
          function(response) {
            var feed = response[0];          
            alert(feed.text)
          });
    });  
    

    So this method is giving me exactly the same result I want.

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

Sidebar

Related Questions

I am using the Facebook comments plugin on WordPress and the comments box is
My site is using the Facebook comments box plugin . I can access the
I'm using Facebook Connect's Comments Box ( http://wiki.developers.facebook.com/index.php/Comments_Box ) to handle comments on my
I am using the facebook comment plugin on my site. <div id=fb-root></div><script src=http://connect.facebook.net/en_US/all.js#xfbml=1></script><fb:comments style=background-color:#131514;
Assume a page, http://foo.com , has the Facebook comment social plugin http://developers.facebook.com/docs/reference/plugins/comments/ ) on
I am creating facebook comment box,it works fine with the static urls, but my
I'm using the Facebook Comments social plugin and I want to be able to
I am using Facebook's Comment box and receive following error in Firefox 8.0 (No
I want to implement a comment box similar to facebook using only CSS. I
I'm working on a website that will be using Facebook Connect to authenticate users.

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.