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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:15:43+00:00 2026-05-25T13:15:43+00:00

Having never dealt with Facebook at a developer level, I’m sure that I’m doing

  • 0

Having never dealt with Facebook at a developer level, I’m sure that I’m doing something very obviously wrong here. Anyway, here’s the problem:

I generate the like button code from https://developers.facebook.com/docs/reference/plugins/like/ and then copy it into my page. When I try to view the site I get nothing displaying.

I noticed that the url in the script section fails to include the protocol (it comes out with: “//connect.facebook.net/en_US/all.js#appId=207642302633270&xfbml=1”). When I have a look what’s happening using Firebug I can see that it’s inserting the script tag into the head section – but the URL doesn’t work. I’ve tried modifying it to include “https:” as the protocol and I then see that the script gets loaded and that also it inserts a bunch of CSS into the head section.

But still nothing displays on the site.

The only thing I can think of that could be problematic is that I (or, more specifically, my client) doesn’t have a Facebook company profile of any sort – I can ask them to set one up if required but this would not be the preferred option as they don’t want to maintain a Facebook profile for the business.

Here’s a stripped down sample I’m working with:

<html>
    <head>
        <title>Testing the Like Button</title>
        <meta property="og:title" content="Company FB Test" />
        <meta property="og:type" content="company" />
        <meta property="og:url" content="http://www.domain.com/fb-test.html" />
        <meta property="og:image" content="http://www.domain.com/logo.png" />
        <meta property="og:site_name" content="Site Name" />
        <meta property="fb:admins" content="__MY_FB_ID__" />
    </head>
    <body>
        <script>(function(d){
            var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
            js = d.createElement('script'); js.id = id; js.async = true;
            js.src = "https://connect.facebook.net/en_US/all.js#appId=207642302633270&xfbml=1";
            d.getElementsByTagName('head')[0].appendChild(js);
        }(document));</script>
        <div class="fb-like" data-send="false" data-layout="box_count" data-width="67" data-show-faces="false" data-font="arial"></div>
    </body>
</html>

A couple of notes:

  1. The sample includes the protocol “https:” – as mentioned, I’ve tried without as well.
  2. This has been tested in the latest versions of Chrome 13, Firefox 6 and IE 9
  3. I’ve tested this in Facebook Lint and it gives me no errors.

Thanks in advance to whoever succeeds in pointing out the obvious to me – and to anyone else who chimes in with any friendly advice.

Cheers,
Zac

  • 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-25T13:15:43+00:00Added an answer on May 25, 2026 at 1:15 pm

    You need to make sure to add this code somewhere in your page:

    <div id="fb-root"></div>
    

    You will see in the chrome debugger tool that there is an error saying it can’t find that div.

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

Sidebar

Related Questions

Having been an imperative developer for some years now, I had never had the
I'm very new to Django, having never developed on it. I'm trying to develop
I'm trying to bring myself up to speed on C#, having never developed for
We were having the (never ending) underscore prefix versus no underscore prefix debate on
Having been a hobbyist programmer for 3 years (mainly Python and C) and never
Hi guys i've never written a comparator b4 and im having a real problem.
Long time reader never posted until now. Im having some trouble with Android, im
I'm having this problem, same as ever, but never try to find the right
Having been a PHP developer on LAMP servers for quite a while, is there
Having a heckuva time with this one, though I feel I'm missing something obvious.

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.