Avatar of Member_2_6492660_1
Member_2_6492660_1
Flag for United States of America asked on

Facebook Like not appearing on Web Page Plese Help

IIS 6
Microsoft Expression Web 4
Windows 7 Pro
Front Page Extensions 2002
Windows 2003 Server

My default.html page trying to add Facebook Like to it

All I get is a blank rectangle across the entire page about 1/4 inch high

Here is the code see attached.
default.htm
HTMLMicrosoft IIS Web ServerJavaScript

Avatar of undefined
Last Comment
Member_2_6492660_1

8/22/2022 - Mon
Gary

Code appears to be working fine bar the fact that you have the FB developer url as the page to like - you should be filling this with your own url (data-href)
Member_2_6492660_1

ASKER
GaryC123,

Not sure what  you mean

new to this
ASKER CERTIFIED SOLUTION
Gary

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Member_2_6492660_1

ASKER
<div class="fb-like" data-href="http://www.mydom.com" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>

made the above change still no like button appears on the page
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Member_2_6492660_1

ASKER
Could it be because I am using HTML not HTML5?

This code was written a  long time ago using Front Page
The Page has not had any change since it was put into production.
Member_2_6492660_1

ASKER
Wondering if I am not able to connect to the facebook site?

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


Seems the web page takes a long time to present itself

Could I have a firewall issue?

Do I need to open up something?

When I type this in url //connect.facebook.net/en_US/all.js#xfbml=1
I get page not found

Thoughts
Member_2_6492660_1

ASKER
It works

just not from my computer which I used to develop it on
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Gary

Could be your firewall or ad blocking software.
Member_2_6492660_1

ASKER
Thanks GaryC123

I think it might be IE caching.

I came to work today accessed my site and the same thing happened the Like button did not show up.

I just did a F5 refresh and they appeared.

Will try that tonight on my home computer.

Now to add the Like / Share button to my asp coded pages.

Again thanks for your help
Gary

NP
Your help has saved me hundreds of hours of internet surfing.
fblack61
Member_2_6492660_1

ASKER
GaryC123

Yes it now works on all my local lan computers also.

Was IE caching after I hit F5 refresh the FB LIKE / Share appeared.

Again thanks for all your help.