私の側ではすべてが正常に機能しているようです。
私が提案できるのは
- javascript sdkを非同期で初期化し、そのコードを<body>タグのすぐ下に配置して、ロードする時間を与えます。「14回の試行のうち1回失敗したのは、私が提案する理由です
。https://developers.facebook.com/docs/reference/javascript/
- チャネルhtmlファイルを使用して、InternetExplorerの読み込みを高速化します。
これは、解析xfbmlと非同期JavaScriptを使用してログインボタンをレンダリングする方法のサンプルです。
<div id="loginbutton"></div>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '135669679827333',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'https://anotherfeed.com/emo/channel.html', // channel.html file
oauth : true // enable OAuth 2.0
});
function loginbutton(){
var loginb=document.getElementById('loginbutton');
loginb.innerHTML='<div class="fb-login-button" data-show-faces="false" data-width="200" data-max-rows="1" data-autologoutlink="true" data-scope="read_stream,user_likes,publish_stream,publish_actions,read_friendlists,user_photos,user_groups,user_interests,user_videos"></div>';
FB.XFBML.parse(loginb);
};
loginbutton();
};
// Load the SDK Asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=135669679827333";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>