简体   繁体   中英

Facebook login, redirect to server then app

I'm trying to login via FB in my app (written using jQuery Mobile and wrapped with phonegap build). When I click on the link the app opens

myserver.com/login

At this point the server (python) calls FB login function. Once the user has logged in FB will redirect to my server again, where I'll do some stuff.

Now, how can I redirect from my server back to my app? I tried to pass

document.URL

to the server and redirect there but my phone says I don't have permission to acces file://android_asset/www/index.html

Thanks to anyone who is willing/able to help.

Solved using childbrowser plugin.

In phonegap build

https://build.phonegap.com/docs/plugins

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM