ページに XFBML コメント ボックスを実装しようとしています。Firefox と Chrome では機能しますが、Internet Explorer 8 では散発的にしか機能しません。
ページがFB.XFBML.parse('fb-stuff');
. XFBML を解析する前に、Facebook Connect スクリプトの読み込みが完了したかどうかを確認する必要がありますか?
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : '117378991625799',
status : false, // check login status
cookie : false, // 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);
FB.XFBML.parse('fb-stuff');
}());
</script>