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

标签 iphone ios twitter

我在我的应用程序中使用 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/

相关文章:

iphone - didReceiveMemoryWarning - 手动卸载 View ?

iphone - 如何按升序或降序对对象的 NSMutableArray 进行排序

iphone - 新版本App内购

objective-c - 使用标量参数调用选择器

css - Twitter 小部件和 Typekit 字体未在 Firefox 中加载

iphone - @property 的自定义 setter ?

ios - uiimagePickerController didFinishPickingMediaWithInfo 在图像选择时没有被调用

objective-c - IOS:两个具有两种不同委托(delegate)方法的 UIAlert

iphone - SLRequest 适用于模拟器而非设备

drupal - 在 drupal 7 网站中集成 twitter