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
Post a Comment