我无法触发Like框中的edge.create
事件。但是,它可以像普通的按钮一样工作。有限制吗?edge.create事件未在Like框中触发
这里是我的编码:
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'ID12456',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<p>Like Box:</p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like-box href="http://www.facebook.com/apps/application.php?id=163685566990893" stream="false"></fb:like-box>
<br/><br/>
<script>
FB.Event.subscribe('edge.create', function(response) {
alert("Ok");
});
</script>
</body>
</html>
不,它仍然不能在独立的Html页面中工作。我删除了第二个all.js调用。任何其他想法?你有没有试过把它保存为html并测试它? – JOhn
你能运行我上面发布的代码吗?只需将其复制到新的.html文件并输入应用程序ID即可。 - 它不适合我。 – JOhn
是的,我试过了,它不工作。奇怪... – ChrisDelsart