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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:33:06+00:00 2026-06-11T10:33:06+00:00

Hi there I am using Facebook like button on my web. All my content

  • 0

Hi there I am using Facebook like button on my web. All my content is loaded via ajax and I have come to know that if you want to use facebook like button with ajax loaded content you should use FB.XFBML.parse(). I have used this and it is working well is firefox and chrome but it is not working in IE. I am checking with IE 8 yet. I have searched the solution and found here to add xmlns:fb="http://www.facebook.com/2008/fbml" in my html tag. I did but it is not fixed yet. My code looks like

  layout.php

 <div id="fb-root" style="display:none"></div>
    <script>
        window.fbAsyncInit = function() {
        FB.init({
          appId      : 'APPID', // App ID
          status     : true, // check login status
          cookie     : true, // enable cookies to allow the server to access the session
          xfbml      : true  // parse XFBML
        });

        // Additional initialization code here
      };

        (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_GB/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));

    </script>

And this is how I am using XFBML.parse

 $(".fblike").each(function(){
  FB.XFBML.parse($(this).get(0));
  //because having multiple likes button on same page.
});

And here is my like button

 <div class='fblike'><fb:like send='false' layout='button_count' width='100' show-faces='false' href='www.myurl.com?ref=facebook' ></fb:like></div>

How to make it work with IE8 and IE9? Where am I wrong and how to fix this problem?

Regards,

  • 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-11T10:33:07+00:00Added an answer on June 11, 2026 at 10:33 am

    In my experience, if you try to run FB.XFBML.parse() wrapped in something that’s hidden before this call, it will not work on IE and Firefox.

    This will not work:

    <div id="wrapper" style="display:none">
        <fb:like id="like_button" ... ...></fb:like>
    </div>
    
    <script>
    FB.XFBML.parse(document.getElementById('like_button'), function() {
        $('#wrapper').show();
    });
    </script>
    

    Could use something like this instead:

    <div id="wrapper" style="display:block; height:0px; overflow:hidden;">
        <fb:like id="like_button" ... ...></fb:like>
    </div>
    
    <script>
    FB.XFBML.parse(document.getElementById('like_button'), function() {
        $('#wrapper').animate({height:'30px'}, 300) 
    });
    </script>
    

    Hope this helps someone else.

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

Sidebar

Related Questions

I am using a facebook like button on my web page. I need it
Background: I have implemented a normal Facebook Like Button to my page using XFBML.
All the content on a site I am building is loaded dynamically using ajax
I am trying to apply css to facebook like button. I know that it
when I've got an facebook application, there is an Like button, near the name
I've tried using the standard Facebook like button . I require about 50 like
I noted there is a link to generate like button code at : http://developers.facebook.com/docs/reference/plugins/like/
I have a Facebook like button/widget, twitter widget, Google+ widget and an anchor tag
I am using Facebook Like Button on my page inside table cell <table style=position:relative;>
I am using facebook like as a iframe on my site. The data that

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.