title: Twitter Login does not work if Twitter app is not installed in device
body: <p><em>This may be the most asked question on SO, but i am still unable to fix my problem.</em> 
  I have checked <a href="https://stackoverflow.com/questions/39325861/login-with-twitter-failure">this</a>, <a href="https://stackoverflow.com/a/44546074/2541348">this</a> and many others, but the problem is still there. </p>
  
  <p>If twitter app is installed on user's device, everything works fine, but if its not there i get the following error message. </p>
  
  <blockquote>
    <p>Invalid json: Callback URL not approved for this client application.
    Approved callback URLs can be adjusted in your application
    settings
        com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING
    at line 1 column 1 path $</p>
    
    <p>Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
    was STRING at line 1 column 1 path $</p>
    
    <p>com.twitter.sdk.android.core.TwitterApiException: HTTP request
    failed, Status: 403
            at com.twitter.sdk.android.core.Callback.onResponse(Callback.java:42)</p>
  </blockquote>
  
  <p>I defined <code>https://www.google.com</code> as a callback URL, and following is my implementation. </p>
  
  <pre><code>//Activity Class
  
   Twitter.initialize(this);
  
   button.setCallback(new Callback&lt;TwitterSession&gt;() {
              @Override
              public void success(Result&lt;TwitterSession&gt; result) {
  
                  TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();
                  TwitterAuthToken authToken = session.getAuthToken();
                  String token = authToken.token;
                  String secret = authToken.secret;
  
                  login(session);
  
              }
  
              @Override
              public void failure(TwitterException exception) {
                  Log.d("Failure", "failure");
              }
          });
  </code></pre>
  
  <p><strong>Strings.xml</strong></p>
  
  <pre><code>   &lt;string name="com.twitter.sdk.android.CONSUMER_KEY"&gt;---&lt;/string&gt;
     &lt;string name="com.twitter.sdk.android.CONSUMER_SECRET"&gt;---&lt;/string&gt;
  </code></pre>
  
  <p><strong>Gradle</strong></p>
  
  <pre><code>compile 'com.twitter.sdk.android:twitter:3.1.1'
  </code></pre>
  
  <p><em>EDIT</em></p>
  
  <p>I have also tried <code>twittersdk://</code> and <code>twitterkit-consumer-key://</code> as callback Url</p>