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

  • Home
  • SEARCH
  • 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 7951849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:41:15+00:00 2026-06-04T02:41:15+00:00

I was trying to clean up some code that a friend helped me with

  • 0

I was trying to clean up some code that a friend helped me with a while back, and I ran across a text widget that displays my Facebook Like box. I’ve pasted the code below. Do I need all of this code? When I go to Facebook and try set up the Like Box from scratch, it does not have the . I didn’t know what that was for, and if I needed it. Also should I have the in the text widget or put that in the header.php file ?

<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>

<div class="fb-like-box" data-href="http://www.facebook.com/noahsdadcom" data-width="300" data-colorscheme="dark" data-show-faces="true" data-stream="false" data-header="false"></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-04T02:41:16+00:00Added an answer on June 4, 2026 at 2:41 am

    Yes, you need all this code for facebook likebox to work.
    Also, dont try to clean, unless you know alot about that language (experience 😉 )

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

Sidebar

Related Questions

I'm going through my app, trying to clean up some code that sends e-mails.
I was trying to clean up some code that uses char* with std::string and
I'm trying to clean up some old code that I wrote to comply with
Trying to clean up some code. I have a button that has the following
I'm trying to clean up some warnings in some old Java code (in Eclipse),
I am trying to clean up some data that has been incorrectly entered. The
I'm trying to get my Javascript code 100% JSLint clean. I've got some JS
I'm trying to clean up some legacy code and have some unchecked cast warnings
I am trying to clean up some existing code Sheets(Control).Select MyDir = Cells(2, 1)
I'm trying to refactor some code here that was done previously by other guys,

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.