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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:35:30+00:00 2026-06-01T05:35:30+00:00

I have a problem consistently displaying Facebook Comments on my AJAX driven website. Each

  • 0

I have a problem consistently displaying Facebook Comments on my AJAX driven website. Each dynamic page of my website has Facebook Comments. The Facebook Comments display on the first visit to a page but when I navigate away from the page and return back to it the Facebook Comments no longer appear. If I refresh the page then the Facebook comments will reappear but they still disappear when I navigate away and return to the same page. I have a feeling that this issue has something to do with the second call to insertBefore(). Can someone suggest a solution to this issue? Below is my code:

MY CODE:

<div class="comments-detail-view">
        <div id="fb-root"></div>
        <script type="text/javascript">
                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)[0];
                    js = d.createElement(s); js.id = id;
                    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxxxxxxxxx";
                    fjs.parentNode.insertBefore(js, fjs); //  **insertBefore()**
                }(document, 'script', 'facebook-jssdk'));  
        </script>
        <div class="fb-comments" data-href="UNIQUE DYNAMIC URL" ></div>
</div>
  • 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-06-01T05:35:31+00:00Added an answer on June 1, 2026 at 5:35 am

    Try re-parsing with a function. In the example i can reload the fbc DIV with the comments box by firing the function and using xfbml to parse.


    <div id="fbc"></div>
    <script>
    function comments(){
    var lb=document.getElementById('fbc');
    lb.innerHTML='<div class="fb-comments" data-href="UNIQUE DYNAMIC URL" ></div>';
    FB.XFBML.parse(lb);
    };
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with displaying adsense ads in ie7 google adsense adds an iframe
I have a form which, for the sake of isolating the problem, has about
In my project I have a number of dynamic elements that are consistently on
I have a problem whereby the Adobe PDF iFilter doesn't work consistently for us.
The problem is I have a stored procedure that runs consistently in Sql Server
Problem: I have a large database table (~500k records) which has a list of
I have built a CMS system using jQuery and PHP, it has worked consistently
I have a question regarding how to make the same website appear consistently in
I have consistently had IDE problems in Delphi/C++Builder for years, with every version. I
I have problem creating new instance of excel 2007 using VBA (from Access 2002).

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.