All threads / Mobile App with Devise Facebook OmniAuth

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Mobile App with Devise Facebook OmniAuth

Tang Rufus asked in Gems / Libraries

My Rails 4 app is using Devise and Facebook OmniAuth. The web app is working perfectly. Now I want to make a iOS app to consume my rails app's API.

Instead of telling iOS users to type in their auth_token from devise-token_authenticatable gem, how can iOS app users login my Rails app after Facebook authentication?

Thanks!

That's definitely something I'm not super familiar with, but can guarantee that many people have done it. Take a look at these answers here and see if they help at all. http://stackoverflow.com/questions/9587012/oauth-flow-iphone-rails-facebook

I think you would hand back the Facebook OAuth token to the Rails app and you wouldn't necessarily need the token_authenticatable gem.

I'm actually working on something similar in iOS with one of my Rails apps and I hand the OAuth token back to the Rails app. There wasn't a need in my case for the token_authenticatable gem.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 34,885+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.