Tuesday 15 July 2014

php - Third party facebook login not working in IE8 -


I am using the following script for Facebook third party login:

  Lt; Div id = "fb-root" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "http://connect.facebook.net/en_US/all.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; FB.init ({appId: '& lt;? =' $ Fbconfig ['API']? ', Position: true, // test login status cookie: true, // server session xfbml: true // Parse xfbml}); & Lt; / Script & gt;   

This is working for all browsers. But it is not working in IE8. Please help me solve that problem.

I have used this asynchronous method many times, I think it helps someone P>

  & lt; Script & gt; // Facebook API window.fbAsyncInit = function () {FB.init ({appId: '& lt;? = $ Fbconfig [' appid ']? & Gt to start;', Status: true, // login login Status cookie: true, enable cookies to allow access to session sessions xfbml: true // parse xfbml}); }; (Function () {var e = document.createElement ('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document .getElementById ('FB-root'). AppendChild (e);} ()); & Lt; / Script & gt; & Lt ;! - Login Button - & gt; & Lt; A href = "#" onclick = "fblogin (); Return Back;" & Gt; & Lt; Img src = "images / my_login.png" & gt; ; & Lt; / A & gt; & Lt; Script & gt; // Your FB Login Function Funbigin () {FB.login (function (feedback) {// you script data}, {scope: 'read_stream, publish_stream, offline_access'}); } & Lt; / Script & gt;    

No comments:

Post a Comment