すべては私の側で正常に動作しているように見えます。
すべて私が提案することができますが、それをロードするための時間を与えるためにちょうど< body>タグの下にそのコードを入れて、非同期ではJavaScript SDKと
- のinitです。 「それは私がお勧めする理由である14回の試行のうち1回失敗しました。 https://developers.facebook.com/docs/reference/javascript/
- 使用チャネルのhtmlファイルをInternet Explorer用の読み込みを高速化する。ここ
は私が使用して自分のログインボタンをレンダリングする方法のサンプルです私が直面していて、解析XFBMLと非同期ジャバスクリプト。
<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>
あなたはボタンでサンプルページへのリンクを投稿することができ、私はあなたがデバッグするのに役立ちます。 –
http://www.enferno.se –