私は自分のサイトにこのコードを持っていますが、apps.facebook.com/xyz の下にログインしようとしても機能しません - 最近の Opera ポップアップ ウィンドウは空白のままです (空白のポップアップ ウィンドウは ope のままです) opends の最新の Safari でポップアップウィンドウを閉じてページを更新しますが、アプリにログインしません:
<script type="text/javascript">
window.fbAsyncInit = function()
{
if ($.browser.opera) //kvoli opere
{
FB.init({
appId : '123', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
channelUrl : 'https://www.sss.tld/channel.html'
});
FB.XD._transport="postmessage";
FB.XD.PostMessage.init();
}
else
{
FB.init({
appId : '123', // App ID
status : true, // check login status
cookie : true // enable cookies to allow the server to access the session
});
}
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
function loginJSokno() {
FB.login(function(response) {
// handle the response
location.reload(true); //po prihlaseni si refreshneme page
}, {scope: 'publish_stream,email,offline_access,create_event'});
}
</script>
これの何が問題なのですか?
PSサファリのPSは、iframeのサードパーティのCookieの問題のように見えますが、どうすれば解決できますか? 私は試してみましたが、運がありません。オペラの場合、何が問題なのかわかりません