I'm using the standard Facebook Like button (iframe, not fbml). Is there a way to only display the like button, not the 'Be the first of your friends to like this' part?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
If you want to just have "x people like this" then:
If you want to have just the number of people that like it in a box then with the Like Button Generator select
button_count
from the Layout Style drop down.IMO the easiest way is to resize the generated iframe with CSS to 54px width (small button). Unfortunately, the iframe doesn't has a class or ID, but you can match it by src attribute:
Of course matching it with a descendant selector is easier.
This is currently not configurable. If you use the
button_count
layout, then you won't see that text.You can simply do this using CSS. Place the like button inside a div. Give the div containing the like button some width. Then set overflow to hidden. Should work!
If you use components K2. You fix in Items K2
Head name "Social Sharing"
As of today's date, in the Like Box code, instead of
layout=standard
uselayout=button_count
and that will show the count bubble & remove that text.