我希望在用户成功点击Facebook赞按钮后显示一个提示框。我无法使用以下代码:
<script type="text/javascript">
FB.Event.subscribe(edge.create, function() {
alert('You just liked the page!');
});
</script>
答案 0 :(得分:0)
edge.create必须在引号中:
<script type="text/javascript">
FB.Event.subscribe('edge.create', function(href, widget) {
alert('You just liked the page!');
});
</script>