I’m trying to develop a server side login with facebook in my mobile app.
The app is develped using jQuery mobile and wrapped with Phonegap build.
The server side is in python.
Now I need the structure of the login to be like this:
app -> myServer -> Facebook -> myServer -> app
My problem is: how can I redirect from my server to my app?
I can’t use the facebook redirect because it goes to my server, not my app. At that point I’m “stuck” on my server and I want to go back to my app.
I tried to get the current url from my app using document.URL but when I try to access it from the server I get this error:
you do not have permission to open this page file:///android_asset/www/index.html
Thanks to anyone who can/will answer.
Solved using childbrowser plugin.
In phonegap build
https://build.phonegap.com/docs/plugins