where to find the Oauth token and secret in the linkedin application

China☆狼群 提交于 2019-12-07 21:59:43

问题


I am trying to practice the examples in the book "mining the social web". Unlike the applications I had created in twitter and facebook, the Oauth token and secret in the linkedin never show up. I only see my client ID and client secret.

by the way, since I do not have any personal url, can someone explain to me what is the appropriate URL I should enter? In the twitter and facebook applications, I just randomly entered some URL, like www.twitter.com, and it worked. In this application for linkedin, I entered www.linkedin.com, but no Oauth token comes out.

I know this question is too basic for you guys, sorry for posting this. I did google the solution for a while, but it seems like no one has ever posted this question.


回答1:


You can't directly get an OAuth Token. You have to follow the authentication procedure to receive an OAuth Token.

Steps involved:

  1. Configure your LinkedIn application with a valid callback url which your server is listening to.
  2. Request an Authorization Code
  3. Exchange Authorization Code for a Request Token

This LinkedIn link will help you on what parameters to send in each request and the URL for the same. https://developer.linkedin.com/docs/oauth2



来源:https://stackoverflow.com/questions/31226310/where-to-find-the-oauth-token-and-secret-in-the-linkedin-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!