-
Notifications
You must be signed in to change notification settings - Fork 28
Description
I am trying to get a linkedIn Dev app working, I want to be able to automate posts on Linkedin but I'm running into some auth problems. To automate posts, it requires a urn:li:person and that is what I seem to have trouble getting.
I've set up the following components and running into the following issues.
This is authtoken with the email, openid, profile, w_member_social.

Sign In with LinkedIn using OpenID Connect and Share on LinkedIn

I am running:
curl -X GET -H "Authorization: Bearer <TOKEN>" https://api.linkedin.com/v2/me
But I am getting a
{"status":403,"serviceErrorCode":100,"code":"ACCESS_DENIED","message":"Not enough permissions to access: me.GET.NO_VERSION"} <= I am using the access code from above with email, openid, profile, w_member_social permissions.
I've also tried: https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?tabs=cURL1#step-3-make-api-requests
with the 2 legged auth where you structure the request like:
curl --location --request POST 'https://www.linkedin.com/oauth/v2/accessToken' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={your_client_id}' \
--data-urlencode 'client_secret={your_client_secret}'
Then I get this error of {"error":"access_denied","error_description":"This application is not allowed to create application tokens"}
Any help would be appreciated!