1

I'm developing an iPhone app with Titanium which is doing API calls to a Rails3 app with Devise/Omniauth.

And I just can't seem to get how to FB Connect in the app and then be able to auth my API calls. There's is a start here but it means that the user has to:

  1. FB Connect in the app
  2. Send the result to the rails app to get a devise token
  3. Ask for what it needs to using that token

Is there any way to directly use the result of Step 1 and get rid of Step 2?

Super thanks!

Community
  • 1
  • 1
jbfeldis
  • 113
  • 1
  • 6

1 Answers1

0

you can make the facebook connect calls directly from the titanium application.

http://wiki.appcelerator.org/display/td/280+Integrating+Contacts+&+Social+APIs

Aaron Saunders
  • 33,180
  • 5
  • 60
  • 80
  • Thank you Aaron, but once the Titanium app is facebook connected how do I authenticate API calls on my own rails3 app? – jbfeldis Jul 01 '11 at 12:26
  • i guess i am confused by your architecture, the user has authorized the mobile application to access there facebook account, not the server? – Aaron Saunders Jul 01 '11 at 13:14
  • Well, maybe I'm completely off topic :) Or I guess that there is something that must be so simple that I can't see it! But it's super simple to have a FB Connect on a rails app, it's super simple to have a FB Connect on an iPhone app. But can't find a great way to have the login via FB on the iPhone app and to get API calls to the rails app done in a nice way. Except going through the process described in the linked SO question. – jbfeldis Jul 01 '11 at 13:23