xfbml like button hide the possibility to add a comment to the like

回眸只為那壹抹淺笑 提交于 2019-12-11 17:32:27

问题


I added a like button in a facebook application (not iframe in order to capture the liked evenment...), and when a user click on like, then he has the possibility to add a comment to the like.

I want to hide/remove this possibility to adda comment when he click on like.

Do you know if it's possible and how to do that?

Thanks


回答1:


Set a fixed height and overflow hidden on the div that contains your like button so that it is hidden after the user clicks 'like'.




回答2:


I added these CSS classes to my css file and it got rid of the comment box for me.

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


来源:https://stackoverflow.com/questions/6276256/xfbml-like-button-hide-the-possibility-to-add-a-comment-to-the-like

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!