Internet explorer IE9和HTML5以及类似XFBML的按钮不';不能在IE保护模式下工作
我在IE9中使用我喜欢的按钮时遇到了严重的问题。它在Chrome和Firefox中工作得很好,但在IE9中,当我单击“喜欢”或“发送新窗口”时,它会打开。我在谷歌上搜索了这个问题,找到了一些类似的帖子,但没有找到解决我问题的方法。我刚刚注意到我的站点和开发人员环境都包含在IE可信站点中,因此标记为不使用保护模式。打开保护模式后,它工作Internet explorer IE9和HTML5以及类似XFBML的按钮不';不能在IE保护模式下工作,internet-explorer,facebook-like,facebook-javascript-sdk,facebook-social-plugins,Internet Explorer,Facebook Like,Facebook Javascript Sdk,Facebook Social Plugins,我在IE9中使用我喜欢的按钮时遇到了严重的问题。它在Chrome和Firefox中工作得很好,但在IE9中,当我单击“喜欢”或“发送新窗口”时,它会打开。我在谷歌上搜索了这个问题,找到了一些类似的帖子,但没有找到解决我问题的方法。我刚刚注意到我的站点和开发人员环境都包含在IE可信站点中,因此标记为不使用保护模式。打开保护模式后,它工作 所以我去FB看看我是否可以在上报告bug,但却找不到真正发布bug的地方——只浏览。因此,除了将我的发现告知其他开发人员之外,还有人能为我指出发布错误报告的正确方
所以我去FB看看我是否可以在上报告bug,但却找不到真正发布bug的地方——只浏览。因此,除了将我的发现告知其他开发人员之外,还有人能为我指出发布错误报告的正确方向吗。试图用谷歌搜索,但没有发现任何问题。在我这方面,一切似乎都很正常。
我只能建议
window.fbAsyninit=函数(){
FB.init({
appId:'135669679827333',
状态:true,//检查登录状态
cookie:true,//启用cookie以允许服务器访问会话
xfbml:true,//解析xfbml
频道URL:'https://anotherfeed.com/emo/channel.html“,//channel.html文件
oauth:true//启用oauth 2.0
});
函数loginbutton(){
var loginb=document.getElementById('loginbutton');
loginb.innerHTML='';
FB.XFBML.parse(loginb);
};
登录按钮();
};
//异步加载SDK
(功能(d、s、id){
var js,fjs=d.getElementsByTagName[0];
if(d.getElementById(id))返回;
js=d.createElement;js.id=id;
js.src=“//connect.facebook.net/en_US/all.js#xfml=1&appId=135669679827333”;
fjs.parentNode.insertBefore(js,fjs);
}(文档“脚本”、“facebook jssdk”);
你能用按钮发布一个指向示例页面的链接吗?我将帮助你调试。它是否有效,因为我面临同样的问题。该代码适用于除政府办公室IE之外的所有浏览器,因为它们经过加固。
<div id="loginbutton"></div>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '135669679827333',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'https://anotherfeed.com/emo/channel.html', // channel.html file
oauth : true // enable OAuth 2.0
});
function loginbutton(){
var loginb=document.getElementById('loginbutton');
loginb.innerHTML='<div class="fb-login-button" data-show-faces="false" data-width="200" data-max-rows="1" data-autologoutlink="true" data-scope="read_stream,user_likes,publish_stream,publish_actions,read_friendlists,user_photos,user_groups,user_interests,user_videos"></div>';
FB.XFBML.parse(loginb);
};
loginbutton();
};
// Load the SDK Asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=135669679827333";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>