Android Vine App "Login to Twitter"

I just downloaded the Vine app for Android, and I noticed that the โ€œLog in with Twitterโ€ feature is integrated with the Android Twitter app.

I mean, if you have already signed up with the Twitter application and switch to Vine, you will not need to log in and authorize the application, and you will automatically log into the application. The same thing happens if you previously logged in with Vine, and then switched to Twitter.

Being a Vine Twitter app, the tight integration between the two apps seems pretty obvious, but I wanted to know if there is a way to do this from any other third-party app.

It would be great to provide users with this feature and keep their login step if they had done so earlier in their native Twitter application.

Thanks in advance

+7
source share
1 answer

Well, why don't you use the simple Facebook or Twitter API to log in. When you integrate FB or Twitter, you made a login through your own applications, so if the user selects logme from facebook, you can try to log in and check if the login is successful or not, and if it is successful, the user does not need to again log in and you save the token.

Of course, you will use the basic configuration and API as follows:

ConfigurationBuilder cnf = new ConfigurationBuilder (); cnf.setDebugEnabled (true);

mTwitter = new TwitterFactory (cnf.build ()). getInstance () ;; mTwitter.setOAuthConsumer (Constant .CONSUMER_KEY, Constant.CONSUMER_SECRET);

-one
source

All Articles