How to add Dreamfactory OAuth facebook login in Ionic? -


i trying implement dreamfactory oauth in ionic app. following resource implementation: http://wiki.dreamfactory.com/dreamfactory/tutorials/using_oauth

this call making:

$http.post('/api/v2/user/session?service=facebook').then(function (result) { console.log("result: "+ json.stringify(result)); }); 

the log above shows me json data redirects facebook url returned call , returns html facebook page.

is there different approach should using in hybrid/ionic apps df oauth login?

make ajax call (or set request header [x-requested-with: xmlhttprequest]). return actual url needed, not redirected response in html. let me know if have questions.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -