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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -