I am following this tutorial. I need the email id of the user. The result of my code is zero.
TwitterAuthClient authClient = new TwitterAuthClient();
authClient.requestEmail(session, new Callback<String>() {
@Override
public void success(Result<String> result) {
// Do something with the result, which provides the email address
Log.d(TAG,"result = "+result);
}
@Override
public void failure(TwitterException exception) {
// Do something on failure
Log.d(TAG,"exception = "+exception);
}
});
2
Answers
Your twitter application needs to be white listed from twitter.
please make sure you have following additional permission enabled in your Twitter app setting