Open seanmiddaugh opened 6 years ago
Hey @seanmiddaugh - have you tried setting this up locally before deploying to Heroku? If you do, you might be able to override the devise_token_auth
controller methods and get a much better idea of why things are failing for you.
@zachfeldman thanks for the response. Maybe this will lead to something. I'm now seeing the following which is the cause of it not hitting the callback:
Failed to load https://www.facebook.com/v2.6/dialog/oauth?client_id=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fomniauth%2Ffacebook%2Fcallback&response_type=code&scope=email&state=38692a16e5be09675fgfca5a7e5522adf3a5283c724ed418f6: Response for preflight is invalid (redirect)
I've tested this on my Heroku server too and I'm getting the exact same response. Any ideas? I think I'm closer.
@zachfeldman am I approaching this social login correctly?
@seanmiddaugh sorry but I don't write Ionic apps so I'm not sure I can help you much further :(. Have you tried looking for sample Ionic 2 implementations for social login?
How would one go about getting this to work with an Ionic 2 application? It seems everything is working through the browser but fails when I try to proceed with Facebook login through Ionic. Here's my Ionic 2 code to Login:
And my logs from Heroku:
Through the app, it seems to die at
INFO -- omniauth: (facebook) Request phase initiated.
every single time. It never proceeds to the callback.Any ideas? Thanks!