当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby - Why is the twitter oauth access token invalid / expired (rails 3)

问题描述:

This question is an exact duplicate of:

  • Twitter::Error::Unauthorized in PostsController#create - Invalid or expired token

    2 answers

网友答案:

Try changing this:

Twitter::Client.new(:token => provider.token, :secret => provider.secret) 

into this

Twitter::Client.new(:oauth_token => provider.token, :oauth_token_secret => provider.secret)
分享给朋友:
您可能感兴趣的文章:
随机阅读: