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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:42:48+00:00 2026-06-15T19:42:48+00:00

New to coding, so bear with me if this is really basic! I’m trying

  • 0

New to coding, so bear with me if this is really basic! I’m trying to add a FaceBook “like” button to my page. I copied the code exactly as they describe on their instructions site. I entered my page details, the desired width (it fit the limits of what they recommend for the features I selected in the generator), and so on, and then copied/pasted the code into my html. I must be missing something. Their instructions were to paste this into the HTML, preferably just below the opening <body>, so I did:

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

Then they said to copy/paste the following wherever I wanted the button to show up, which I did:

<div class="fb-like" data-href="http://www.facebook.com/musicbyava" data-send="true" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div>

I refresh my page, and there’s not a trace of anything in the place where the plugin is supposed to be. Not a dot, not a line, not an error message, nada. What am I missing? Thanks in advance!

  • 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-15T19:42:49+00:00Added an answer on June 15, 2026 at 7:42 pm

    Welcome to Stack Overflow.

    There could be an array of problems why the script isn’t displaying the like button. Without a url or copy of the outputted html, almost impossible to tell. If you are working on a local network and lose your internet connection, for example, boom, no FB Like box.

    Taking a shot in the dark- This IS a javascript error. Errors in javascript are not displayed to the screen. Instead, they manifest themselves in a near infinite amount of ways, from omitting a single element after page load to loading a white screen.

    If you are working with Chrome or Firefox, you can download an Web Developer extension. I recommend Firebug for Firefox, or Right Click and "Inspect Element" in Chrome (I think this ships with Chrome- otherwise it’s the Web Developer Extension)

    Whichever tool you use, all errors with be outputted in the console of these environments.

    And we’re just getting started.

    If this sounds like too much work, I recommend trying the above code on a different page to see if the page you are copy&pasting to has malformed html. Then it’s back to the above advice.

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

Sidebar

Related Questions

I am new to coding python. I am hoping to modify this code to
I'm completely new to coding - I can do some basic HTML. I'm trying
I am new to coding and would like to set this up in my
I'm very new to this, so please bear with me. For a coding C
I'm relatively new to coding so please help me out here. The code will
I'm fairly new to coding in general, learning to code in rails, and feel
I am new to coding and would just like to know a bit more
I am new to Javascript coding and have looked for this information in many
Im very new to all coding including jquery. I though this would have been
I'm coming from C# and very new at this so please bear with me.

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.