ArkeologeN / node-linkedin

LinkedIn 2.0 wrapper in Node.js
MIT License
163 stars 78 forks source link

invalid_request: A required parameter "code" is missing #92

Open fabianmedina09 opened 5 years ago

fabianmedina09 commented 5 years ago

HI, this issue appears when it comes to adding the permission level "r_fullprofile" to the scope array.

{ invalid_request: A required parameter "code" is missing at Request._callback (...\node_modules\node-linkedin\lib\auth.js:98:27) at Request.self.callback (...\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (...\node_modules\request\request.js:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage. (...\node_modules\request\request.js:1083:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) name: 'invalid_request' }

How can i solve this?

In my linkedin app I only have this permission: (How can others be added?) ['r_basicprofile', 'r_liteprofile', 'r_emailaddress', 'w_share', 'rw_company_admin', 'w_member_social']

or there is some other way in which you can get all the profile information

captainjackrana commented 5 years ago

@fabianmedina09 do you still have the r_basicprofile permission in your app? If yes, then how did you get access to it, since Linkedin has revoked that access on most apps now