Facebook not redirecting to "next" page after logout -


in phonegap app using url logout

window.location.href="https://www.facebook.com/logout.php?next="+encodeuri(my_url)+"&access_token="+fbtoken; 

here my_url 1 url defined in settings >> advanced >> valid oauth redirect uris text box.

after logout facebook redirect page not found. sample of my_url http://localhost/dogroups_fork/www/#/home

you using wrong method prepare parameter insertion url context.

had done a

console.log(encodeuri('http://localhost/dogroups_fork/www/#/home')); 

you have noticed, gives same value http://localhost/dogroups_fork/www/#/home unaltered.

the correct method use here encodeuricomponent


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -