mente
mente

Reputation: 2876

Twitter authentication using similar to Vine dialog in Android

I want to make an authentication dialog similar to Vine: twitter authenticationin vine

Thought it can be done using AccountManager. But it gives me entirely different dialog. I suppose Vine is using some private intent that shows this dialog.

Are there any public/non-public APIs for Twitter Android app that gives this dialog?

Upvotes: 0

Views: 300

Answers (1)

pepyakin
pepyakin

Reputation: 2235

Twitter Auth is seems like not well documented.

You need to launch activity com.twitter.android.AuthorizeAppActivity in com.twitter.android package with following extras:

  • ck — consumer key
  • cs — consumer secret

and get result back. In result bundle you will get following extras:

  • tk — access token
  • ts — token secret
  • screen_name — looks like it is screen name
  • user_id — same here

You must hold com.twitter.android.permission.AUTH_APP to start this activity.

Upvotes: 4

Related Questions