Spring Breaker
Spring Breaker

Reputation: 8251

Does Twitter support OAuth 2.0?

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.

Upvotes: 5

Views: 2991

Answers (2)

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)

Upvotes: 1

Jan Gerlinger
Jan Gerlinger

Reputation: 7415

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.

Upvotes: 9

Related Questions