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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:50:59+00:00 2026-05-19T21:50:59+00:00

The code below works on one page, but not another page (the place it

  • 0

The code below works on one page, but not another page (the place it should be – the same place as on the other page) – is blank.

This code displays the facebook like button, and is copied verbatim from the facebook website.
The code is there – I checked “view page source” in Firefox, it just isn’t doing anything.

I can put another script, the “find us on facebook” button, either directly above or below this code, and that shows up okay.

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like 
href="http://www.facebook.com/pages/[our name]/[our number]" layout="box_count" 
show_faces="false" width="50"></fb:like>

UPDATE
If I use the iframe code instead of the XFBML code from: http://developers.facebook.com/docs/reference/plugins/like/ then it works on both pages (but I can’t format that right – WordPress doesn’t like iframes in widgets).
What is going on?

UPDATE
When I disable the WordPress Facebook Share plugin this problem goes away. There may be a problem with double initialization of the Facebook SDK, as pointed out by Chris Livey below. Is there some html I can add before the “like” code to de-initialize the SDK?

  • 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-19T21:51:00+00:00Added an answer on May 19, 2026 at 9:51 pm

    You mentioned Firefox. You should start with looking in the Tools | Error Console to see if any javascript errors occurred during the page load.

    The next step is to get the firebug addon and use it to see what might be happening.

    (removed update – info did not apply)

    UPDATE:

    Okay, the word press plug in clobbering you. If you are going to keep the word press plug in then remove this:

    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    

    From your button code and everything should work just fine.

    UPDATE 2:
    From all of the comments, this issue boiled down to a word press plugin using it’s own javascript definition for the FB object. Fortunately before creating that object it performs a test to see if FB is already defined.

    The fix then is to add the correct FB script to the top of the page such that it is executed by the browser BEFORE the word press FB Share button plugin script. Because it is executed first, the word press plugin can’t screw it up while continuing to function correctly.

    This only works if the browser executes the scripts in the order seen on the page.

    The real fix would be for the word press plugin to be modified to use the full FB object from connect.facebook.com instead of the smaller one it provides.

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

Sidebar

Related Questions

No related questions found

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.