Twitter integration:consumer key/secret pair already set

前端 未结 2 1731
旧巷少年郎
旧巷少年郎 2020-12-03 06:03

Trying to integrate my webapp with Twitter using twitter4j lib.
I have registered my app on twitter site and got Consumer key and Consumer secret

2条回答
  •  独厮守ぢ
    2020-12-03 06:17

    My hunch is that you're setting the private final variables and then twitter.setOAuthConsumer() is trying to do the same. You should only need one or the other. Have you tried commenting out the twitter.setOAuthConsumer() line?

    The Docs explain the 'preferred' way to do set these.

提交回复
热议问题