functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

LinkedIn Auth Sample produces error

Open ruralcoder opened this issue 6 years ago • 2 comments

Auth code exchange result received after calling

linkedin.people.me(async (error, userResults)

I get the following,

{ errorCode: 0,
  message: 'This resource is no longer available under v1 APIs',
  requestId: 'OPVJ0MW5W1',
  status: 410,
  timestamp: 1566539742211 }

Which in result produces

UID " linkedin:undefined "

Not sure if something wrong with your example or the node-linkedin library.

Opened the same ticket with 'node-linkedin'

ruralcoder avatar Aug 23 '19 08:08 ruralcoder

Found a related ticket on node-linked

https://github.com/ArkeologeN/node-linkedin/issues/88

It seems the library does not support V2 and LinkedIn is blocking all V1 traffic.

ruralcoder avatar Aug 23 '19 08:08 ruralcoder

This example needs to be updated with v2 usage

sauravexodus avatar Jul 07 '20 18:07 sauravexodus