Failed to get auth app token error

I am trying to get the useID ant oAuth from Digits . But when I enter my phone number and click "SEND CONFIRMATION CODE" I got this error:

 E/Twitter﹕ Failed to get app auth token 403 Forbidden
            at retrofit.RestAdapter$RestHandler.invokeRequest(
            at retrofit.RestAdapter$RestHandler.access$100(
            at retrofit.RestAdapter$RestHandler$2.obtainResponse(
            at java.util.concurrent.ThreadPoolExecutor.runWorker(
            at java.util.concurrent.ThreadPoolExecutor$
            at retrofit.Platform$Android$2$
E/Digits﹕ HTTP Error: 403 Forbidden, API Error: 99, User Message: Try Again


My Application Class Code:

private AuthCallback authCallback;
public void onCreate()

    TwitterAuthConfig authConfig =  new TwitterAuthConfig(BuildConfig.CONSUMER_SECRET, BuildConfig.CONSUMER_KEY);
    Fabric.with(this, new TwitterCore(authConfig), new Digits());
    authCallback = new AuthCallback() {
        public void success(DigitsSession session, String phoneNumber) {
            // Do something with the session

        public void failure(DigitsException exception) {
            // Do something on failure

public AuthCallback getAuthCallback(){
    return authCallback;


My registration Activity code:

    protected void onCreate(Bundle savedInstanceState) {
        DigitsAuthButton digitsButton = (DigitsAuthButton) findViewById(;
        digitsButton.setCallback(((MyApplication) getApplication()).getAuthCallback());



1. How can I fix this error? 2.What consumer_key

and consumer_secret

I have to use? At I have one consumer_key

u consumer_secret

, but at I have different consumer_key

u consumer_secret

? I try both, but I get the same error.


source to share

All Articles