Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Like Button Not Showing Up In Firefox

I'm using the following code for my like button

<fb:like id="facebook-like" href="http://mysite.com/index.php" layout="button_count" width="450" show_faces="false" font=""></fb:like>

Some users have experienced the like button not showing up. Noted in 3.6.17 but observed in other versions. I'm somewhat familier with the firefox iframe bug, but I was currious if anyone has any work arounds for the facebook like button.

like image 765
Dan Avatar asked Jul 28 '11 01:07

Dan


People also ask

Why is my Facebook like button not showing up?

If you have add your Facebook into the popup setting but the Like button does not show, it might be one of these reasons: - Your Facebook page has been set with restrictions and it is not a public page. - You entered the wrong link on the app setting.

How do I make my Like button visible on Facebook?

Go to Settings › General, then click the Share tab. Enable the Facebook Like/Recommend button setting by clicking the “thumb up” Like icon. Then click the settings (...) icon in the upper left of the button.

Why is Facebook not working properly in Firefox?

It's possible that a problem with Firefox is causing Facebook to not function correctly. This could be a missing or corrupt program file, or a problem with the Firefox settings. Download and install the latest version of the program from the official website at mozilla.org.

Why do some Facebook pages not have a Like button?

One of the biggest changes about the new Page design is that it does away with “Likes.” This came about because Likes were misrepresenting a Page's true popularity. Many Facebook users had once “Liked” a Page, but later unfollowed the Page to remove its updates from their News Feed as they outgrew their interest.


2 Answers

Like buttons that are rendered with javascript (<div class="fb-like"/> and <fb:like/>) get height=0 if they are initially hidden (display:none).

To work around this, create the element with javascript after the container is displayed, and then run:

FB.XFBML.parse();

Example:

result.show();
var like_box = $(".fb-like-inactive", result);
like_box.removeClass("fb-like-inactive");
like_box.addClass("fb-like");
FB.XFBML.parse();
like image 140
Per Avatar answered Sep 21 '22 05:09

Per


This CSS solved it for me

.fb-like span, .fb-like iframe { height:25px!important; width:150px!important}
like image 38
Oli Uigget Avatar answered Sep 24 '22 05:09

Oli Uigget