JS SDK を使用して Facebook アプリを開発しています。SDK がロードされない iPad を除いて、すべてが FF/Chrome/Safari で正常に動作します。
次のように、非常に単純なコード (ほとんどは Facebook のドキュメントから直接取得) を使用して試してみました。
<!doctype html>
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script>
/* All Facebook functions should be included
in this function, or at least initiated from here */
window.fbAsyncInit = function() {
FB.init({appId: MYAPPID,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.login(function(response) {
if (response.authResponse) {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Good to see you, ' + response.name + '.');
});
} else {
console.log('User cancelled login or did not fully authorize.');
}
});
};
(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>
</div>
そして、何も表示されません。ポップアップなし (ブロックされない)、console.log なし、何もありません。私のコードに問題があるのでしょうか、それとも Facebook SDK が今日おかしくなっているのでしょうか? プラットフォームのステータスに関連するものは何もありませんでした。