android twitter4j authentication via installed twitter app not browser

爷,独闯天下 提交于 2019-11-29 02:04:06

EDITED: November 27, 2014

Twitter recently released Fabric that does include SSO support. From the Android docs:

When attempting to obtain an authentication token, the Kit will use the locally installed Twitter app to offer a single sign-on experience. If the Kit is unable to access the authentication token through the Twitter app, it falls back to using a web view to finish the OAuth process.

My older response is below.


tl;dr Currently, SSO with Twitter is not possible on Android.

Longer version: What you are basically asking for is Single sign-on (SSO), similar to what is available with the Facebook SDK for Android. Twitter has never bothered to even implement their own library for Android, let alone SSO. There are a bunch of people who have asked on the dev forums (here and here) but the standard response is, and I quote,

We do not currently offer a SDK for Android with the same level of tight integration as is available in iOS5.

Twitter needs to first get their Android app to support SSO. I would suggest using Facebook and Google+ for login instead of Twitter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!