-1
我有兩個Facebook插件(像和評論框)在我的網頁上。 當我用插件登錄它不會自動登錄另一個插件,直到我刷新頁面。facebook插件不能一起刷新
例如:當我通過點擊按鈕登錄時,我的評論框保持註銷狀態,直到我刷新頁面。
請建議我一些對這個問題
我的代碼如下
<script>
window.fbAsyncInit = function() {
FB.init({ appId: 'My app ID', status: true, cookie: true, xfbml: true });
FB.Event.subscribe("xfbml.render", function (targetUrl) {
$("#myh1").html("Facebook Loaded");
//alert('edge.create');
setTimeout(aaa, 500);
});
FB.Canvas.setDoneLoading(function() {
alert("Done loading");
});
FB.Event.subscribe('comment.remove', function (response) {
alert('The status of the session is: ' + response.status);
});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
function aaa() {
$("#content_1").mCustomScrollbar({
scrollButtons: {
enable: false
}
});
}
</script>
<div class="fb-like" data-send="false" data-href="http://www.facebook.com /AiLiveCaptions" data-width="298" data-show-faces="true">
</div>
<div class="fb-comments" data-href="http://www.facebook.com/AiLiveCaptions" data-num- posts="8" order_by="reverse_time" data-width="280"></div>
讓它在結束時自動刷新頁面? – 2012-09-01 05:43:04
我不想刷新整個頁面 – ajaykalyanynr