javascript - Facebook login-button doesn't work in IE8 -
i got weird issue down here, i've been using facebook login-button long time , doesn't work on new web page i'm developing. here code:
<!doctype html> <html xmlns:fb="http://www.facebook.com/2008/fbml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>woyou</title> <link rel="stylesheet" href="./styles/styles16.css" type="text/css" id="css"/> <script type="text/javascript" src="./js/saved_resource" type="text/js/default.i.js"></script> <script type="text/javascript" charset="utf-8"> function init() { var screenx = screen.width; var screeny = screen.height; var screenres = screenx/screeny; screenres = screenres.tofixed(2); if (screenres == 1.60){ document.getelementbyid("css").href= "./styles/styles16.css"; } else if (screenres == 1.77){ document.getelementbyid("css").href= "./styles/styles17.css"; } else if (screenres == 1.33){ document.getelementbyid("css").href= "./styles/styles13.css"; } else if (screenres == 1.25){ document.getelementbyid("css").href= "./styles/styles12.css"; } } </script> </head> <body onload="init();" onunload="" onkeydown="return keydown(event);" onkeyup="return keyup(event);" id="body" style="overflow-x: hidden; overflow-y: hidden;"> <div id="fb-root"></div> <script type="text/javascript"> window.fbasyncinit = function() { fb.init({ appid : '275229992538227', // app id channelurl : '//www.ihaveseen.org/index.html', status : true, // check login status cookie : true, // enable cookies allow server access session oauth : true, xfbml : true //, // parse xfbml //frictionlessrequests : true }); fb.getloginstatus(function(response) { if (response.status == 'connected') { alert("conex"); } else {} }); }; (function() { var e = document.createelement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; e.async = true; document.getelementbyid('fb-root').appendchild(e); }()); <div class="snwbuttons" style="position: absolute; left: 70%; top: 20%; width: 5%; height: 5%; text-align: left;"> <div class="facebook-plugin" style="position: absolute; left: 5%; top: 15%; text-align: left;"><fb:login-button autologoutlink='true' perms='email,user_birthday,status_update,publish_stream,user_location,user_hometown,user_online_presence,friends_online_presence'></fb:login-button></div> </div> it used work fine me don't know why doesn't now, i've checked of issues related here , tried change code in different ways....any idea?
check javascript code errors. ie8 doesn't ',' in code id there nothing after. try removing comma from:
xfbml : true //, // parse xfbml //frictionlessrequests : true running code through online lint tool can help.
Comments
Post a Comment