Guest authentication failed at /1.1/guest/activate.json

guestauth

#1

I get this error log, which says to email support@fabric about “upgrading” the API key. Support has been very helpful but say the consumerKey in use is perfectly fine and enabled for guest auth. It’s not a key from a Twitter App I made, but a Twitter App Fabric made automatically.

The code is basically:

[[[TWTRAPIClient alloc] init] loadTweetWithID:self.tweetId completion:^(TWTRTweet *tweet, NSError *error) { ... } ];

The error is:

2015-12-14 12:22:53.033 MyApp[65368:4736799] Guest authentication failed: Error     Domain=TwitterAPIErrorDomain Code=89 "Request failed: unauthorized (401)" UserInfo={NSErrorFailingURLKey=https://api.twitter.com/1.1/guest/activate.json, NSLocalizedDescription=Request failed: unauthorized (401), NSLocalizedFailureReason=Twitter API error : Invalid or expired token. (code 89)}
2015-12-14 12:22:53.034 MyApp[65368:4736799] [TWTRGuestSessionRefreshStrategy] Your app may not be enabled for guest authentication. Please contact support@fabric.io to upgrade your consumer key.
(lldb) po error
Error Domain=TwitterAPIErrorDomain Code=89 "Request failed: unauthorized (401)" UserInfo={NSErrorFailingURLKey=https://api.twitter.com/1.1/guest/activate.json, NSLocalizedDescription=Request failed: unauthorized (401), NSLocalizedFailureReason=Twitter API error : Invalid or expired token. (code 89)}

#2

Which version of Twitter Kit are you using?


#4

The TwitterKit version in the app which is misbehaving is 1.11.3

Upgrading to 1.14.6 seems to fix it, but then what to do about the 1.11.3 clients out there? What changed since then and can I unchange it?

IrisPanabaker asks for JSON, but can I debug with JSON? All the TWTRAPIClient gives back is an optional TWTRTweet and NSError.


#5