5

I want to integrate Twitter with my Android application. Can I do this using OAuth 2.0?

I have searched the internet but couldn't find any good explanation regarding this. If anyone has done this before, can you please guide me through this. I saw in a old post here that Twitter doesn't support OAuth 2.0.

Jan Gerlinger
  • 7,361
  • 1
  • 44
  • 52
Spring Breaker
  • 8,233
  • 3
  • 36
  • 60

2 Answers2

9

Basically, no, Twitter still uses OAuth 1.0a for most parts of their backend. Since march however, they support the OAuth 2 client credentials flow for application-only authentication.

This means, if you:

  • have an application that only shows tweets from other users or stuff like that, you can get authorized using OAuth 2.
  • want any users to use your app to post tweets or do anything else on a user's behalf, you have to struggle with OAuth 1.0a.

You should check out the Twitter4J library, which abstracts most of the OAuth 1 hassle away from you.

Community
  • 1
  • 1
Jan Gerlinger
  • 7,361
  • 1
  • 44
  • 52
1

This might be of interest:

"... we're releasing our application-only authentication scheme, based on the OAuth 2.0 client credentials flow."

Posted to dev.twitter 2013-03-11 https://dev.twitter.com/blog/application-only-authentication (current: https://blog.twitter.com/developer/en_us/a/2013/application-only-authentication.html)