我已经使用 mgtwitterengine 在我的 iphone 上设置了一个 twitter 客户端。我已经设法设置它,所以我可以发推文并接收状态更新。
使用标准设置,您只能收到 10 到 20 次更新。能够收到更多的更新,然后你必须投入[_engine getFollowedTimelineSinceID:0 startingAtPage:0 count:50];
,但这不允许你获得超过原始数量,直到你激活
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
在 SA_OAuthTwitterEngine.m 中。
我的问题是当我这样做时,我不能再从我的应用程序中发布新状态。我可以在流中拥有多达 200 个状态,但没有发布功能。这是错误:Error Domain=HTTP Code=401“操作无法完成。(HTTP 错误 401。)”
任何帮助,将不胜感激。
提前谢谢了
解决了
我只需要在if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest)
之前添加if (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];}
,它看起来像这样:
if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest) {
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
}