0
我试图在用户在我的博客上发帖时收到Facebook通知(在Facebook内) - http://visualise.ca。接收我网站上Facebook Like按钮的通知
我有下面的代码,插件工作正常,但我不能得到通知,我不知道我做错了什么。这里是一个代码示例:
<html lang="en">
<head>
<meta charset=utf-8>
<meta property="fb:admins" content="589865326" />
</head>
<body>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=134951483245924&xfbml=1"></script><fb:like notify="true" href="http://visualise.ca" send="true" layout="button_count" width="450" show_faces="false" colorscheme="dark" font=""></fb:like>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '134951483245924', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('edge.create', function(href, widget) {
// Do something, e.g. track the click on the "Like" button here
});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
</body>
</html>
我在想什么?非常感谢您的时间和帮助。
OK!所以不可能在网站上的Like按钮获得Facebook通知?所以这就是为什么它不工作......我明白了,我失去了这么多时间,努力尝试。 ;-) – Gab 2012-02-13 19:31:34