MGTwitterEngine 的 sendUpdate inReplyTo 并未实际回复推文
MGTwitterEngine 的带有 inReplyTo 参数的 sendUpdate 实际上并不是回复一条推文,而是发布一条新推文!
我遇到了论坛中讨论的 long long value 问题,但我修复了这个问题,并且 tweetID 保持不变。但每当我回复推文时,当我检查推特页面时,我只会发布一条新推文,而不是回复。
请让我知道我能做些什么来解决这个问题!
提前非常感谢!
The MGTwitterEngine's sendUpdate with the inReplyTo parameter is not actually replying to a tweet and is instead tweeting a new one!
I faced the long long value problem as discussed in the forums, but I fixed that and the tweetID remains constant across. But whenever I reply to a tweet, when I check the twitter page, I'd have just tweeted a new one, instead of a reply.
Please do let me know what I can do to fix this problem!
Thank you so much in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
sumitkm 是对的,所有这些转换都是不必要的,因为最后 updateID 通过 stringWithFormat 方法传递给 param 的 NSString 。除此之外,我还必须添加回复消息前缀以及我回复的用户名,因此示例消息如下:“@MichalGumny 我的回复消息”。这对我有用。
sumitkm has right, all this conversion is unnecessary since at the end updateID is passing to param's NSString through stringWithFormat method. In addition to that I had to add to reply message prefix with name of user that I reply to, so example message would look like: "@MichalGumny my reply message". It works for me.
Prashanth,
最初的 MGTwitterEngine 使用无符号长整型作为推文 id。但推文 ID 早已超过了无符号长 ID 大小。您需要将 tweet id 更改为 NSString 并将其作为 NSString 传递。在内部,该值作为 URL 的一部分发布,因此可以将其作为字符串传递。
我在此处发布了所需的更改。
我自己还没有尝试回复推文,如果情况有所不同,我会尝试一下并在此处发布。
Prashanth,
The original MGTwitterEngine used an unsigned long as the tweet id. But the Tweet IDs have long gone past unsigned long id size. You'll need to change the tweet id to a NSString and pass it around as a NSString. Internally the value is posted as a part of URL so it's okay to pass it around as a string.
I posted the required changes here.
I haven't tried reply to a tweet myself, I'll give it a shot and post here if things are different.