Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(LinkedIn Node): Fix issue with posting as user or organization (#…
Browse files Browse the repository at this point in the history
Joffcom authored and netroy committed Jun 14, 2023
1 parent ceb3661 commit 2522a85
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ export class LinkedInOAuth2Api implements ICredentialType {
name: 'scope',
type: 'hidden',
default:
'=r_liteprofile,r_emailaddress,w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":""}}',
'=w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":",r_liteprofile,r_emailaddress"}}',
description:
'Standard scopes for posting on behalf of a user or organization. See <a href="https://docs.microsoft.com/en-us/linkedin/marketing/getting-started#available-permissions"> this resource </a>.',
},
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/LinkedIn/GenericFunctions.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ export async function linkedInApiRequest(
headers: {
Accept: 'application/json',
'X-Restli-Protocol-Version': '2.0.0',
'LinkedIn-Version': '202301',
'LinkedIn-Version': '202304',
},
method,
body,
1 change: 0 additions & 1 deletion packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts
Original file line number Diff line number Diff line change
@@ -107,7 +107,6 @@ export class LinkedIn implements INodeType {
lifecycleState: 'PUBLISHED',
distribution: {
feedDistribution: 'MAIN_FEED',
targetEnties: [],
thirdPartyDistributionChannels: [],
},
visibility,

0 comments on commit 2522a85

Please sign in to comment.