I am trying to request an email from a user using twitter login and it always returns me the following error.
com.twitter.sdk.android.core.TwitterException: Your application may not have access to email addresses or the user may not have an email address. To request access, please visit https:
I followed all the steps to develop this email request on the fabric page. I requested access to twitter, and they answered me with a confirmation email, and I configured all the necessary elements in the Twitter application control panel, but the email request always sends me a rejection method and throws this exception.
any idea?
private void twitterConfig() { TwitterAuthConfig authConfig = new TwitterAuthConfig("Consumer Key (API Key)", "Consumer Secret (API Secret"); Fabric.with(this, new Twitter(authConfig)); twitterLoginButton.setCallback(new Callback<TwitterSession>() { @Override public void success(Result<TwitterSession> result) { TwitterSession session = result.data; String msg = "@" + session.getUserName() + " logged in! (#" + session.getUserId() + ")"; TwitterAuthClient authClient = new TwitterAuthClient(); authClient.requestEmail(session, new Callback<String>() { @Override public void success(Result<String> result) { System.out.println(); } @Override public void failure(TwitterException exception) { notificationManager.showMessage(getString(R.string.error_cant_get_login)); } }); } @Override public void failure(TwitterException exception) { notificationManager.showMessage(getString(R.string.error_generic)); } }); }
Mun0n source share