我在做facebook的积分。当我登录时,小部件不会重新加载。正因为如此,我无法发表评论。当我重新加载窗口时,它工作得很好。我做错了什么?
我正在使用下面的代码。
<script>
window.fbAsyncInit = function() {
FB.init({ appId: '217419501642964',
status: true,
cookie: true,
xfbml: true,
channelUrl:'https://creator.zoho.com/channel.html'});
_ga.trackFacebook();
};
(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);
}())
</script>TIA日志
发布于 2011-08-09 21:57:14
尝试在登录后重新呈现XFBML:
FB.Event.subscribe('auth.login', function(response) {
FB.XFBML.parse(document.getElementById('myfblogin'));
// where myfblogin is the id of your <fb:login-button> element
});https://stackoverflow.com/questions/6993845
复制相似问题