gpt4 book ai didi

javascript - 如果我在 IE 9 中刷新页面,Facebook 登录按钮就会消失

转载 作者:行者123 更新时间:2023-11-30 13:31:24 24 4
gpt4 key购买 nike

每当我在 Internet Explorer 9 中刷新页面时,Facebook 登录按钮就会消失。所有其他浏览器都正常。 IE 仅在第一次刷新时显示该按钮,使其消失。

我正在使用以下代码连接 facebook

<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '193048084076885', status: true, cookie: true, xfbml: true});

};
(function() {
var e = document.createElement('script');

e.src = document.location.protocol +
'//connect.facebook.net/tr_TR/all.js';
e.async = true;
document.getElementById("fb-root").appendChild(e);
}());
</script>

和 Facebook 按钮

 <fb:login-button v="2" size="medium" length="long"  perms="email, user_about_me,  user_birthday, user_education_history, user_hometown, user_interests, user_location, user_photos"></fb:login-button>

您知道任何解决方法吗?谢谢。

最佳答案

我找到了解决方案,将以下内容放在标题部分的上方。

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

关于javascript - 如果我在 IE 9 中刷新页面,Facebook 登录按钮就会消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6651882/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com