Failed to get app auth token

android
auth
embeddedtimeline

#1

The TweetTimeLineListAdapter is failing. I thought I could get timelines on a guest account, should it require an auth token? Either way, I authorized the app, still getting errors.

01-14 12:36:14.909 16664-16664/com.datadoghealth E/Twitter: Failed to get app auth token
com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403
at com.twitter.sdk.android.core.Callback.onResponse(Callback.java:42)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

I essentially copied the code below, and added the Fabric.with(… to the login activity.

    // We'll define a custom screen layout here (the one shown above), but
    // typically, you could just use the standard ListActivity layout.
    setContentView(R.layout.activity_twitter);

    final UserTimeline userTimeline = new UserTimeline.Builder()
            .screenName("fabric")
            .build();
    final TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(this)
            .setTimeline(userTimeline)
            .build();

    setListAdapter(adapter);

Please advise on how to debug this


#2

Hey @ravichacko,

Thanks for posting - can you share which version of Twitter Kit you’re using?

Also, do you see this every time you load this timeline?

-Mike


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.