OK I am still trying to work out the proper flow.
I think I was not specific enough in my original question.
I have a cordova/phonegap application that I wish to use with Dreamfactory as the backend.
Currently, I have it working directly with facebook. I have the oauth flow working. But, I want to also store things on dreamfactory without having to log in separately. The portal seems like the idea way to do this.
What I need to know at this point is how to make the oauth flow work through dreamfactory instead.
Now, the flow when in a phonegap app is a little tricky compared to what happens in a browser. the portal example works in the browser but I’m not sure how to make it work in phonegap.
Currently, the first thing I do is call to facebook which gets me the login and then approving the app to access, passing to it the URL I wish to be redirected to when facebook authenticates:
How do I do this dreamfactory? It would seem to be:
But this doesnt seem to work. It doesnt use my return_url so I cant catch it.