【发布时间】:2011-08-25 22:49:57
【问题描述】:
Uncaught ReferenceError: _onloadHook is not defined
为什么?我的代码如下:
<!DOCTYPE html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<html>
<head>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
//Initialize facebook
FB.init({
appId : '12345',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'http://www.abc.com/channel.html', // channel.html file
});
</script>
</head>
<body>
<div id="fb-root"></div>
<fb:send href="http://abc.com/blah" font="lucida grande" ref="codes_popup"></fb:send>
<fb:send href="http://abc.com/blah" font="lucida grande" ref="codes_popup"></fb:send>
</body>
</html>
编辑:当我有多个时,这会发生。当我只有一个“发送”按钮时,错误就不存在了。
对于每个额外的“发送”按钮,都会发生错误。
【问题讨论】:
标签: facebook-graph-api facebook facebook-fql