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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -