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