SA_OAuthTwitterEngine无法在我的时间轴上发布消息

时间:2012-10-11 12:30:33

标签: iphone ios twitter

我在我的应用中使用SA_OAuthTwitterEngine在我的时间轴上发布消息。直到我更新到ios6才行。所以现在它不起作用。以下是我在app app 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委托方法:

- (void)OAuthTwitterController:(SA_OAuthTwitterController *)controller authenticatedWithUsername:(NSString *)username
{
  [self.engine sendUpdate:[NSString stringWithFormat:@"test"]];
}

我尝试将消息发送到我的时间线。但我的时间表中没有任何消息。使用auth看起来没问题,但是没有向时间线发送消息。

1 个答案:

答案 0 :(得分:1)

如果SA_OAuthTwitterEngine正在使用MGTwitterEngine进行实际的推特,它可能已经停止工作。 Twitter关闭了MGTwitterEngine正在使用的一些API端点。

在此处查看此问题:Twitter status API suddenly returning error '34'

当人们意识到事情已经停止工作时,无疑很快就会有很多其他人来。

相关问题