Twitter API “retweeted_status” field in “home_timeline” request

拥有回忆 提交于 2019-12-04 20:16:19

I've found the answer. It was so simple. SAOAuthTwitterEngine engine uses MGTwitterEngine but allows it to use OAuth. But this engine is using MGTwitterEngine created in 2008, when MGTwitterEngine didn't know about "retweeted_status" because this feature appeared later.

Anyway. All I was need to do - if to add [elementName isEqualToString:@"retweeted_status"] case for

  • (void)parser:(NSXMLParser *)theParser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict

and

  • (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName

methods in MGTwitterStatusesParser.m similarly to [elementName isEqualToString:@"status"] case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!