Fabric - Twitter API Exception 403


#1

Trying to display search timeline in an android app but it throws an exception with the message:
Your app may not allow guest auth. Please talk to us regarding upgrading your consumer key.
com.twitter.sdk.android.core.TwitterApiException: 403 Forbidden

Code snippet:

    View view = inflater.inflate(R.layout.twitter_layout, container, false);
    ListView listView = (ListView) view.findViewById(R.id.twitter_list);

    if(!Fabric.isInitialized()) {


        TwitterAuthConfig authConfig = new TwitterAuthConfig( KEY, SECRET);
        Fabric.with(getContext(), new Twitter(authConfig));


    }else{
        Log.d("TAG", "Fabric already initialized");
    }

    SearchTimeline searchTimeline = new SearchTimeline.Builder().query("#Wwe").build();
    System.out.println("0");
    TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(getContext()).setTimeline(searchTimeline).build();
    listView.setAdapter(adapter);
    return inflater.inflate(R.layout.twitter_layout,null);

#2

Was your Twitter Consumer Key generated via Fabric or from apps.twitter.com?


#3

Key was generated via Fabric.


#4

Hmm, that should be all set then. Can you email into support(at)fabric(dot)io with the Twitter Consumer Key that you’re using from your info.plist and the KEY from this line?

TwitterAuthConfig authConfig = new TwitterAuthConfig( KEY, SECRET);


#5

Okay will do, thanks.