Internet-Explorer – IE9 and HTML5 and XFBML, buttons don’t work in IE protection mode

I encountered a serious problem to make my button work in IE9. It works well in Chrome and Firefox, but click “Like” or “Send new window in IE9 ”Will open. I searched for the problem and found some similar posts, but did not solve my problem. I just noticed that my website and my developer environment are included in IE trusted sites, so they are marked as not Use protected mode. After turning on protected mode, it works.

So I went to FB to see if I could report errors at http://developers.facebook.com/bugs, but I couldn’t find the actual The place where the error was posted – can only be browsed. So apart from posting this to inform me of the findings of other developers – anyone can point me in the right direction for posting the error report. Tried to google but didn’t.

Everything looks good to me.
What I can suggest is

>Initialize the javascript sdk in async and put its code in the tag to give it the time to load. “It failed 1 out of 14 attempts, that’s why I suggested it.
https://developers .facebook.com/docs/reference/javascript/
>Use channel html files to speed up the loading of Internet Explorer.

This is an example of how I use parse xfbml and async javascript to render my login button .



< 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='';
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'));

I ran into a serious problem to get my button to work in IE9. It worked well in Chrome and Firefox, but in It will open when you click “Like” or “Send New Window” in IE9. I searched for the problem and found some similar posts, but it did not solve my problem. I just noticed that my website and my developer environment are both It is included in the IE trusted site, so it is marked as not using protected mode. After the protected mode is turned on, it works.

So I went to FB to see if I can go to http://developers. Facebook.com/bugs reports the error, but I can’t find the place where the error was actually posted-only browse. So besides posting this to inform me of the findings of other developers-anyone can point me in the right direction for posting the bug report. Tried to google but no.

Everything of mine looks good.
What I can suggest is

>Initialize the javascript sdk in async and put its code in the tag to give it the time to load. “It failed 1 out of 14 attempts, that’s why I suggested it.
https://developers .facebook.com/docs/reference/javascript/
>Use channel html files to speed up the loading of Internet Explorer.

This is an example of how I use parse xfbml and async javascript to render my login button .



< 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
cha nnelUrl:'https://anotherfeed.com/emo/channel.html', // channel.html file
oauth: true // enable OAuth 2.0
});
function loginbutton( ){
var loginb=document.getElementById('loginbutton');
loginb.innerHTML='';
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'));

Leave a Comment

Your email address will not be published.