简体   繁体   中英

On Facebook like button on my site, how to disable “post to Facebook” button?

How can I disable the Post to Facebook button? It's very annoying.

I do not want to use an iframe version of the like code., as the following wouldn't work:

FB.Event.subscribe('edge.create',
    function(response) { })

Can it be done with CSS or in any other way?

you can manually hide the comment box by adding the following CSS code to your theme:

Simplest fix to hide the comment box after Facebook Like (XFBML version not the iframe one) is as given:

.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr {
display: none !important;}

Working demo

credits

Facebook Developers page has a pretty good description of everything you'll need.

If you don't want to use an iframe, perhaps make a "Like" button of your own that simply links users to your Facebook page?

<a href="http://www.facebook.com/pages/yourLink/Here"><img src="likeBtn.png" alt="Like Us On Facebook!" /></a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM