登录按钮和身份验证可以在Internet explorer中工作
Login button and auth dosnt work in Internet explorer
我有一些登录代码,适用于Firefox和其他浏览器,但在Internet Explorer中使用时会出错。帮帮我。
这是代码:http://jsfiddle.net/6HXmS/1/
- 确保您已经添加了所有必需的og:meta标记https://developers.facebook.com/docs/opengraph/此外,您使用了html5版本的按钮,但您的文档没有设置为文档类型html5,请更改文档类型,或者,如果其他操作都失败,您可以尝试xfbml版本的按钮
- 请在加载JS.sdk后尝试呈现该按钮
<div id="fb-root"></div>
<div id="loginbutton"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '136067339849637', // App ID
channelUrl : '//www.crabiz.biz/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true // parse XFBML
});
function loginbutton(){
var loginb=document.getElementById('loginbutton');
//loginb.innerHTML='';
loginb.innerHTML=' <div class="fb-login-button" on-login="funx()" scope="email,user_likes,user_about_me,publish_stream,read_friendlists">
Installa Artesposa
</div><br>';
FB.XFBML.parse(loginb);
};
loginbutton();
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
function funx() {
window.top.location.href = "https://www.facebook.com/Partecipazioninozze.Artesposa/app_136067339849637";
}
function funxie() {
window.top.location.href = "https://apps.facebook.com/arte-sposa";
}
</script>
相关文章:
- 视频HTML没有'无法在Internet Explorer 11上工作
- Internet Explorer缺少占位符支持,特别是密码字段
- Internet Explorer中的文本换行错误
- 为什么我在Internet Explorer上看不到html元素
- internet explorer 8兼容模式下的Youtube api错误
- 当浏览器控制台未打开时,为什么要求会导致Internet Explorer 9超时
- Internet Explorer 8. Events
- jQuery表单验证适用于Mozilla和Internet Explorer,但不适用于Chrome或Safari
- element.dataset in Internet Explorer
- Facebook FB.init”;访问被拒绝”;在Internet Explorer 11中
- JavaScript不适用于internet explorer和Firefox,但适用于谷歌
- 在Internet Explorer中,向所选内容添加选项不起作用
- 在Internet Explorer中从二进制文件打开PDF
- elementproblem internet explorer
- 我可以使用哪些方法在Internet Explorer中禁用Alt+*X*
- 如何在Internet Explorer中使用javascript设置cookie
- 只有当alert()在带有AJAX的internet explorer中使用时,Javascript才会更新UI
- sharepoint站点的internet explorer中出现Javascript错误
- Internet Explorer重新加载IFrame
- 如何在不使用Internet Explorer的情况下从未挂起的HTML文件执行程序