没有从 MGTwitterEngine 获得委托回调
我正在尝试通过 MGTwitterEngine 获取 twitter 用户的 sentDirectMessages。但是,我没有收到来自引擎的 MGTwitterEngine 委托方法回调来说明其收到的数据。
我放置了一个 NSLog 来查看是否调用了 connectionFinished 方法,确实如此,但没有其他方法,即 - (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)connectionIdentifier
请你能告诉我问题是什么吗,所有代表都设置为自我。
[manager.engine getSentDirectMessagesSinceID:0 startingAtPage:0];
I am trying to get the sentDirectMessages of a twitter user via MGTwitterEngine. However, I am not receiving an MGTwitterEngine delegation method callback from the engine to say its received data.
I put an NSLog to see if the connectionFinished method was being called, and it was, but no other methods were i.e - (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)connectionIdentifier
Please could you tell me what the problem is, all delegates are set to self.
[manager.engine getSentDirectMessagesSinceID:0 startingAtPage:0];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,但我会问常规问题:您的 .h 文件中是否有 MGTwitterEngineDelegate?
我建议在
requestSucceeded:
和requestFailed:withError:
中添加一些日志记录您是否在该项目中成功进行了任何其他类型的 Twitter 通信?在同一类中?
编辑
我设置了一个 DM 请求,它与
requestSucceeded:
和directMessagesReceived:forRequest:
一起正常工作,基于您的:
我想知道这是否不是用户令牌未正确存储的问题?我建议研究一下成功登录如何存储令牌?
特别是这个 MGTwitterEngineDelegate 方法。
希望这会有所帮助。
Sry, but I will ask the routine question: Do you have MGTwitterEngineDelegate in your .h file?
I suggest throwing some logging in
requestSucceeded:
andrequestFailed:withError:
Are you successfully doing any other types of Twitter communication within that project? within the same class?
EDIT
I setup a DM request and it worked correctly with a
requestSucceeded:
and adirectMessagesReceived:forRequest:
Based on your:
I am wondering if this is not an issue where the users token is not being stored correctly? I suggest look into how the successful login is storing the token?
In particular this MGTwitterEngineDelegate method.
Hope this helps.