LinkedIn scribe OAuth library unable to allow access to LinkedIn account

后端 未结 1 790
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 04:51

I\'m writing a proof-of-concept app to connect to LinkedIn using the scribe OAuth library.

I can get a request Token, but am unable to exchange that for an access to

相关标签:
1条回答
  • 2021-01-01 05:36

    In your onResume method you're getting a new request token but, the verification code is from the request token you got in the onCreate method. So, you're trying to get an access token using the second request token but the verification code corresponds to the first request token - hence, you're not issued an access token. Make sense?

    If you take out requestToken = service.getRequestToken(); from the onResume method then this should work as everything else looks correct.

    0 讨论(0)
提交回复
热议问题