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