nraboy / ng-cordova-oauth

AngularJS oauth library for use with Apache Cordova projects
https://www.thepolyglotdeveloper.com
MIT License
456 stars 199 forks source link

Facebook signin issue in windows platform #333

Open jaisonishith opened 7 years ago

jaisonishith commented 7 years ago

Facebook login to get access token is working in Android and iOS platform. But same implementation breaks in windows platform.

In windows platform, it will show up the login screen. after entering the credentials it will continuously show the loading screen. Doesn't redirect to callback URL.

Cordova version : 6.5.0 Windows Platform version: 4.4.3 Android Platform version: 6.1.2 Inappbrowser version: 1.7.1

Phone Name: Windows phone 925 Phone OS version: Windows Phone 8.1

nraboy commented 7 years ago

I've never actually tried this with this Windows platform. Always assumed Windows platform received inferior support with Apache Cordova.

That said, since this plugin relies 100% on the Apache Cordova InAppBrowser plugin, if redirections are not working it would be because of a problem with that plugin.

You can find the code in question here:

https://github.com/nraboy/ng-cordova-oauth/blob/master/src/oauth.facebook.js#L32-L53

jaisonishith commented 7 years ago

Understood and agreed.

I directly accessed the url (https://m.facebook.com/v2.9/dialog/oauth?redirect_uri=http://localhost/callback&scope=publish_actions,user_status,user_birthday,user_posts,user_events,email,user_actions.news,user_friends,public_profile&response_type=token&client_id=****) in "Internet Explorer" browser of the same device, it worked as expected.