Twitter Authentication through Android's AccountManager classes

后端 未结 2 1629
再見小時候
再見小時候 2021-01-18 02:21

I am developing an android application and want to integrate Twitter.

What I understand is if on user\'s device, official android Twitter app is installed then we ca

相关标签:
2条回答
  • 2021-01-18 03:19

    well you use the secret and consumer key to actually get a token. by using the android accounts you get the token from them.

    So in general to do a tweet for example you only need a token and as i said you get that one either from the accounts or from twitter4j. so after you get the token from the accounts you need to set it as your twitter 4jsdk token and use the api regularly.

    Hope this makes sense.

    0 讨论(0)
  • 2021-01-18 03:22

    The com.twitter.android.oauth.token and com.twitter.android.oauth.token.secret credentials returned by Android's AccountManager only authenticate using Twitter's official Consumer Key and Secret. AFAIK They're not actually useful to third party developers.

    With respect to Twitter I'll just say the official Consumer Key/Secret pair is "out there", and if Twitter changed them via an app update they'd break OAuth for every user without that app update.

    0 讨论(0)
提交回复
热议问题