1
嗨,大家好我有一个de feed对话框的奇怪问题。 它的工作原理pefect在Firefox,但是当我试图把它用在IE或Chrome我得到这个错误“发生错误,请稍后再试”Feed对话框在某些浏览器上不起作用
我试图修复它,但我不能。你能帮我吗。 这是我用来调用对话框的代码。
<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_GB/all.js'></script>
<a href="#" onclick='postToFeed(); return false;'>Post Feed</a>
<script>
FB.init({appId: "xxxx", status: true, cookie: true});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'http://apps.facebook.com/xxxx',
picture: 'xxxx',
name: 'xxxx',
caption: 'xxxxx',
description: 'xxxxx',
properties: [{text: 'xx', href: 'xx'},],
actions: [{name: 'xx', link: 'xx'}],
};
function callback(response) {
document.getElementById('msg').innerHTML = "Well Done!!";
}
FB.ui(obj, callback);
}
</script>
</script>
感谢您的帮助,我发现脚本与社交插件的代码碰撞的promblem。 –