I'm using the fbAsyncInit method for an iframe application that lives in a fan page tab
<script>
window.fbAsyncInit = function() {
console.log('fb init');
FB.init({
appId : 12345,
status : true, // check login status
cookie : true, // 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);
}());
</script>
そして、登録機能を呼び出してアクセス許可を確認すると (これは、ページが読み込まれた後にユーザーがボタンをクリックしたときに発生します)
register = function(){
console.log('starting login');
FB.login(function(response) {
if (response.session) {
console.log(response.session);
} else {
console.log('Did not authorize');
}
}, {perms:'email,publish_stream'});
};
Facebook は次の場所からポップアップを読み込みます: http://static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb= {セッション文字列変数とその他の迷惑メールはこちら}
IE でのみフラッシュ エラーが発生します。
Error #2044: Unhandled StatusEvent:. level=error, code=
私のサイトにはフラッシュがありません
続行/非表示を押すと、IEがフリーズしてプロセスが終了することがあり、ポップアップが消える場合もあります