I am using Log In with Twitter for my Android app, that was successfully loging in for the past few days. Now the login fails
Twitter Log In:
mTwitterLoginButton = (TwitterLoginButton) findViewById(R.id.twitter_login_button);
mTwitterLoginButton.setCallback(new Callback<TwitterSession>() {
@Override
public void success(Result<TwitterSession> result) {
Intent i = new Intent(getBaseContext(), FeedActivity.class);
i.putExtra("Socials", "Twitter");
i.putExtra("Twitter AuthToken", result.data.getAuthToken().token);
i.putExtra("Twitter AuthSecret", result.data.getAuthToken().secret);
i.putExtra("Twitter UserName", result.data.getUserName());
i.putExtra("Twitter UserID", result.data.getUserId());
startActivity(i);
}
@Override
public void failure(TwitterException exception) {
new SnackBar.Builder(mActivity)
.withMessage("Twitter Login Failed.")
.withBackgroundColorId(R.color.tw__blue_pressed)
.show();
exception.printStackTrace();
}
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…