我无法回复twitter_oauth上的推文。以下是我的代码
@twitter_client = TwitterOAuth::Client.new(
:consumer_key => 'key ',
:consumer_secret => 'secret',
:token => token,
:secret => secret
)
response = @twitter_client.update(response_description, {"in_reply_to_status_id" => tweet_id})
logger.info response.inspect
它发布了这条推文,但不是作为回复。
发布于 2012-01-04 23:22:31
也有同样的问题。您需要包括您正在回复的推文的twitter用户名。
注意:除非在状态文本中提到此参数引用的推文的作者,否则此参数将被忽略。因此,您必须在更新中包含@ username,其中username是引用的tweet的作者。
在与in_reply_to_status_id参数相关的https://dev.twitter.com/docs/api/1/post/statuses/update中发现了这一点。
https://stackoverflow.com/questions/7859276
复制相似问题