TwitterKit couldn't get tweets

ios
fabric
twitterkit

#1

Hi

I have integrated iOS Fabric SDK and TwitterKit. I am trying below code to get tweets :

TWTRAPIClient *client = [[TWTRAPIClient alloc] init];
self.dataSource = [[TWTRUserTimelineDataSource alloc] initWithScreenName:@“fabric” APIClient:client];

but I am always getting below error :

[TwitterKit] Couldn’t load tweets from TWTRTimelineViewController: Error Domain=TwitterAPIErrorDomain Code=200 “Request failed: forbidden (403)” UserInfo={NSErrorFailingURLKey=https://api.twitter.com/1.1/guest/activate.json, NSLocalizedDescription=Request failed: forbidden (403), NSLocalizedFailureReason=Twitter API error : Forbidden. (code 200)}

How to load tweets ?


#2

@MaulikSorathia Was your key created from Fabric or via apps.twitter.com?


#3

@bonnell :

I have created the app at https://apps.twitter.com/ and used its key in app like

[[Twitter sharedInstance] startWithConsumerKey:@“key” consumerSecret:@“key”];

I have overwrite these key. I also have these key in .plist file but still getting that error in log.


#4

@bonnell

Any help ?


#5

@MaulikSorathia, try creating the app on Fabric.io. One of the benefits of Fabric apps is that they automatically get guest auth privileges, which is required for accessing the API without OAuth


#6