Facebook login popup doesn't close after login on iOS8 -



Facebook login popup doesn't close after login on iOS8 -

i'm testing web app login flow on ios8. notice on ios8, login dialogue pops up, after logging in, stays there, showing blank page.

the login works, because page behind shows user information, popup stays there, while should close automatically. on ios7 , ios6 close. on desktop browsers closes too.

i've tested other random sites (for illustration brainfall.com) using fb.login(): same thing.

does have prepare this?

any help much appreciated!

check this: fb_window_redirect

override de window.open method. allows know windows opened.

then can redirect window opened fb sdk.

... window._open = window.open; // saving original function //override function window.open = function(url,name,params) { var new_window = window._open(url,name,params); if (typeof onwindowopen === "function") { onwindowopen(url, name, params, new_window); } homecoming new_window; }; ... var openedwindows = []; var fbwindows = []; function onwindowopen(url, name, params, new_window) { ... // filter facebook oauth request if (url.contains('facebook.com') && url.contains('oauth')) { fbwindows.push(new_window); } openedwindows.push(new_window); } ... //on fb login button pressed callback: fb.login(function(response) { //try login if(response.authresponse) { //login succesful // fb window redirect. // see onwindowopen var fbwin = fbwindows[0]; var redirect_url = '' fbwin.location = redirect_url; } }, {scope: 'email,publish_stream,user_birthday'}); ...

facebook facebook-javascript-sdk facebook-login

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -