不要对此按钮使用回调函数。Opera Dragonfly for facebook 显示此错误:
未处理的错误:JSON.parse:字符串中未转义的控制字符:“
在文件http://connect.facebook.net/ru_RU/all.js
代码页标准:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.Event.subscribe('edge.create', function(href, widget) {
alert('ok');
});
}
</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="true"></div>