我使用fbAsyncInit方法,生活在粉絲頁面標籤的iframe應用的FB.login生產閃存錯誤
<script>
window.fbAsyncInit = function() {
console.log('fb init');
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
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
當我調用寄存器功能檢查權限(這種情況發生時,用戶在頁面加載後點擊按鈕)
register = function(){
console.log('starting login');
FB.login(function(response) {
if (response.session) {
console.log(response.session);
} else {
console.log('Did not authorize');
}
}, {perms:'email,publish_stream'});
};
Facebook的加載彈出窗口:http://static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb= {會話字符串變量和這裏其他垃圾}
僅在IE產生閃光錯誤:
Error #2044: Unhandled StatusEvent:. level=error, code=
我的網站中有
無頻閃打繼續/解僱有時會凍結IE導致我結束進程,其他時間彈出消失
您是否添加了上述答案中指定的頻道網址? – chrisan 2011-06-21 09:57:11
今天早上我測試了,我可以確認....這個修補程序。只要確保你的channelUrl位於相同的域.....問題...如果我們需要區域化all.js怎麼辦?包含在頁面上的那個是否超過了這個? – leedium 2011-06-21 13:32:56