2

I might be missing something with the Facebook and Twitter logins APIs. Something that is blocking me from understanding how they would be used in mobile applications.

Both APIs seem like they need to redirect you to and then back to a website. How would that work from a mobile app? Or is there another way to use these APIs?

I have to write a website that has native login, Facebook login and Twitter login. Then I am expected to turn around and open up a set of web services to an Android and iPhone mobile apps. Thought this was to "loose" of a question to ask on StackOverflow. What is the best approach? Any links on calling the API without UI interaction?

tyndall
  • 179

2 Answers2

2

I've seen apps using social network auth without a hitch. Facebook provides SDKs for Android and iOS. For using Twitter's OAuth API, check out this link.

sarumont
  • 463
1

Twitter offers an xAuth API which uses the same tokens as the OAuth one, but uses username/password to fetch them the first time instead of website authentication, so you can avoid the need for the browser. The catch is you need to specifically request access to this API, but it seems like they'll give it to anybody who's got screenshots and a good description of their feature set.