Note that there are some explanatory texts on larger screens.

plurals
  1. POFB.Event.subscribe infinite loop on Internet Explorer
    primarykey
    data
    text
    <p>I've been trying to solve this out for about 4 hours (searching on google and stackoverflow and praying to the rain gods, nothing worked), so I really hope someone in here could help.</p> <p>I'm developing an app where users can upload photos, vote them and comment them. Until now, it works OK in all browsers, except for internet explorer, where the app falls to an infinite loop, reloading the tab in the same 'step'.</p> <p>I'm using the example code included in the SDK (latest sdk):</p> <pre><code> &lt;fb:login-button scope="email,user_location"&gt;&lt;img src="button image here"&gt;/fb:login-button&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt; window.fbAsyncInit = function() { FB.init({ appId: 'APP ID GOES HERE', cookie: true, xfbml: true, oauth: true }); FB.Event.subscribe('auth.login', function(response) { window.location.reload(); }); }; (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; </code></pre> <p>As in the example code included in the sdk, I use php to check if the user has already granted the app for permissions. The app file is called fotoapp.php and, if the user has granted permissions, is redirected to fotoapp.php?s=2 (s=1 is where I include the login button), if false, then is redirected to fotoapp.php?s=1. The 's' variable is only for file include purposes.</p> <p>The only thing where I use fbjs is the event subscribe for the login reloading.</p> <p>Does anyone have an idea to solve this?</p> <p>Thank you very much!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload