skip to Main Content

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);
            }
        });

official documentation

2

Answers


  1. Your twitter application needs to be white listed from twitter.

    Login or Signup to reply.
  2. please make sure you have following additional permission enabled in your Twitter app setting enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search