Like button like Follow (Twitter) in Ruby on Rails

620 Views Asked by At

I added the following code to get a nice follow button for twitter:

 <a href="https://twitter.com/twitterid" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false" data-lang="en">Follow us @Twitter</a>

Is there a way to get a similar like button for facebook? I tried to configure it at facebook, but I get the count with it, which I don't want.

1

There are 1 best solutions below

0
On BEST ANSWER

First, you'll want to implement the code provided by Facebook in whole. Then, you can apply CSS styling that hides the count. Try this solution, via Jacob Quatier:

/* CSS Hack for hiding the LIKE count */
div.fb-like span {
  display:block;
  width:48px !important;  
}

div.fb-like iframe {
  width:48px !important;
}

div.fb-like iframe.fb_iframe_widget_lift {
  width:450px !important;
}