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
LVL 23
Thomas GrassiSystems AdministratorAsked:
Who is Participating?
 
GaryCommented:
In the HTML you have this

<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>

You need to replace https://developers.facebook.com/docs/plugins/ with your own url

I assume you are using
https://developers.facebook.com/docs/plugins/like-button/
You need to add your own urls to the code - if you are using a scripting language like PHP then this would be a dynamic thing where it auto populates for each page with php code e.g.
<div class="fb-like" data-href="<?=http://$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]?>"; data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
0
 
GaryCommented:
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)
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
GaryC123,

Not sure what  you mean

new to this
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Thomas GrassiSystems AdministratorAuthor Commented:
<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
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
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.
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
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
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
It works

just not from my computer which I used to develop it on
0
 
GaryCommented:
Could be your firewall or ad blocking software.
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
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
0
 
GaryCommented:
NP
0
 
Thomas GrassiSystems AdministratorAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.