Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone SA#u OAuthTwitterEngine可以';不要在我的时间表上发布消息_Iphone_Ios_Twitter - Fatal编程技术网

Iphone SA#u OAuthTwitterEngine可以';不要在我的时间表上发布消息

Iphone SA#u OAuthTwitterEngine可以';不要在我的时间表上发布消息,iphone,ios,twitter,Iphone,Ios,Twitter,我正在我的应用程序中使用SA_OAuthTwitterEngine在我的时间线上发布消息。在我更新到ios6之前,一切正常。所以现在它不起作用了。以下是我如何在我的应用程序代理中登录twitter: SA_OAuthTwitterEngine *engine;//ivar if (self.engine == nil) { self.engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self]; self

我正在我的应用程序中使用SA_OAuthTwitterEngine在我的时间线上发布消息。在我更新到ios6之前,一切正常。所以现在它不起作用了。以下是我如何在我的应用程序代理中登录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看起来没问题,但不会向timeline发送消息。

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

请看这里的问题:


毫无疑问,随着人们意识到事情已经停止运行,许多其他人很快就来了。

Hm,刚刚检查了错误,它返回:error Domain=HTTP Code=404“操作无法完成。(HTTP error 404)。”是的。这听起来像是使用了一个关闭的端点。我找到了解决方案,它只需要更改基本api。谢谢你的帮助。@Romula>>你能分享一下新的基础API杜德吗?