Facebook Widget Not Working On FireFox

Hi All

I am not too sure if I am posting in the right category however I have created just a standard Facebook Like and Share button using the Facebook tool, ticking or unticking the correct boxes etc and then getting the code, below.

It works fine on Chrome, Safari, Opera, IE and Edge but does not show up at all on FireFox.

Any idea why this might be and how to fix it?

Many Thanks

mrmbarnes

<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 = \'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.11\';
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>

<div class="fb-like" data-href="https://www.facebook.com/LiftTraxbyHiGoTec/" data-layout="standard" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>

The Facebook code will not save here so I have added it here - http://www.higotec.com/test.php

Hi there mrmbarnes,

the link works OK with my two versions of Firefox,…

  1. Firefox Quantum 58.0b16 (64-bit) - portable
  2. Firefox 52.5.3 (64-bit) ESR

… on Windows 7. :winky:

The code though, does not work locally. :wonky:

coothead

1 Like

I seem to recall finding the same thing.

Are you viewing the page on your local machine or a host server?

I had to upload an html file, which included the code from the O.P.s link,
to my site to get it to work. :winky:

Running the same html file locally did not work for me in Firefox or Chrome. :wonky:

coothead

1 Like

Thanks for that info so far… I am on the latest version of FireFox, I believe, 57.0.4 (64-bit) and running 64 bit Windows 10 which should also be the latest version.

The code is running on my server and, as I said, works on every other browser.

I have it imbedded into my website and stand alone in the above sample file.

I am not too sure what this additional HTML file is about.

This is a weird issue as it is just the standard Facebook code and you would think Facebook would supply code that works.

Any other ideas or suggestions?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.