我在我的应用程序中使用 SA_OAuthTwitterEngine 在我的时间轴上发布消息。一直没问题,直到我更新到ios6。所以现在不行了。以下是我在应用程序委托(delegate)中登录 Twitter 的方法:
SA_OAuthTwitterEngine *engine;//ivar
if (self.engine == nil)
{
self.engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
self.engine.consumerKey = kOAuthConsumerKey;
self.engine.consumerSecret = kOAuthConsumerSecret;
}
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:self.engine delegate:self];
if (controller == nil)
return;
[self.window.rootViewController presentModalViewController:controller animated:NO];
来自 SA_OAuthTwitterEngine 委托(delegate)方法:
- (void)OAuthTwitterController:(SA_OAuthTwitterController *)controller authenticatedWithUsername:(NSString *)username
{
[self.engine sendUpdate:[NSString stringWithFormat:@"test"]];
}
我尝试向我的时间线发送消息。但我的时间线里没有任何消息。看起来身份验证没问题,但没有向时间线发送消息。
最佳答案
如果 SA_OAuthTwitterEngine 使用 MGTwitterEngine 进行实际的推文,它可能已停止工作。 Twitter 关闭了 MGTwitterEngine 正在使用的一些 API 端点。
在这里查看这个问题:Twitter status API suddenly returning error '34'
毫无疑问,随着人们意识到事情已经停止运作,许多其他人很快就会到来。
关于iphone - SA_OAuthTwitterEngine 无法在我的时间轴上发布消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12839590/