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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:45:35+00:00 2026-06-03T07:45:35+00:00

I am embedding Facebook Comment plugin on our site and for some reason the

  • 0

I am embedding Facebook Comment plugin on our site and for some reason the comment plugin is stuck in a perpetually loading sate like follows:

Facebook comment plugin perpetual load

I’m not sure if it’s a Facebook problem or my code. Here’s what I have right after the opening <body> tag:

<div id="fb-root"></div>
<script>
   window.fbAsyncInit = function () {
      FB.init({ appId: '1234567890', cookie: true, oauth: true });
   };
   (function (d) {
      var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
      if (d.getElementById(id)) { return; }
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = "//connect.facebook.net/en_US/all.js";
      ref.parentNode.insertBefore(js, ref);
   } (document));
</script>

(1234567890 is where my actual appID is)

On the page where I want to show the Facebook comment plugin I have this:

<div class="fb-comments" data-href="http://mydomain.com" 
     data-num-posts="2" data-width="580"></div>

As far as I can tell this should all work. However, I’ve seen no mention of any FB bugs regarding this, nor do I see problems on other sites. So I guess it’s my code?

I’ve even tried using the exact code given by the code generator on the FB developers site:

<div id="fb-root"></div>
<script>
    (function (d, s, id) {
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) return;
       js = d.createElement(s); js.id = id;
       js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=1234567890";
       fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));
</script>

Unfortunately this doesn’t work either.

Would love some help pointing me in the right direction!

Update: I’ve tried just placing my AppID in this fiddle (http://jsfiddle.net/Rw79Q/) and it works. So there is something in my code causing the issue. No idea what it could be and I can’t share my entire code here.

  • 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-03T07:45:37+00:00Added an answer on June 3, 2026 at 7:45 am
    window.fbAsyncInit = function () {
       ({ appId: '1234567890', cookie: true, oauth: true });
    };
    

    Isn’t the body of that function actually supposed to be an argument? ({ appId: '1234567890', cookie: true, oauth: true }); in a function body creates an object literal and then does nothing with it. This is equivalent to writing:

    window.fbAsyncInit = function () {};
    

    Which is useless.

    The rest of your code looks like it works, but I don’t have a valid app ID / domain on hand to test with at the moment. Drop your app ID and domain in this fiddle and see if it works: http://jsfiddle.net/Rw79Q/


    From the chat discussion, it looks like the page has to be on a live server, otherwise you get the “infinite loading” behavior. I was able to recreate the behavior using a local file: URI. Hopefully the issue will go away once you push this to production.

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

Sidebar

Related Questions

I'm integrating the Facebook Like Button into a site. The likeing functionality is working
I want to start embedding media content on instaright.com in Twitter, Friendfeed, Facebook like
I'm embedding a Flash video into an HTML and would like the user to
I have tried all three different options facebook lets you use when embedding a
When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do
I'm embedding a Google trends widget in the sidebar of my site which delays
I'm thinking about embedding arbitrary JSON in the DOM like this: <script type=application/json id=stuff>
I am thinking of embedding different login methods for my website, like login through
I'm embedding here a simplified version of a code that is not working for
I'm trying to rewrite a Facebook app (a PHP script embedding a small multiplayer

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.