Has anyone created a custom tool that will post to your personal LinkedIn profile? If so, could you point me to a repo or documentation?
Thx,
Ed
Has anyone created a custom tool that will post to your personal LinkedIn profile? If so, could you point me to a repo or documentation?
Thx,
Ed
Found a potential solution:
{ langchain-ai/social-media-agent}
To authorize posting on LinkedIn, you’ll need to:
Auth
tab, and add a new authorized redirect URL for OAuth 2.0. Set it to http://localhost:3000/auth/linkedin/callback
Products
tab and enable the Share on LinkedIn
and Sign In with LinkedIn using OpenID Connect
products.If you plan on posting from company pages, you’ll need to do the following:
``
``
``
``
.env
file:LINKEDIN_CLIENT_ID
LINKEDIN_CLIENT_SECRET
yarn start:auth
command to run the LinkedIn OAuth server. Open http://localhost:3000 in your browser, and click Login with LinkedIn
.access_token
and sub
values from the objects logged to the terminal. Set these values as LINKEDIN_ACCESS_TOKEN
(access_token
) and LINKEDIN_PERSON_URN
(sub
) in your .env
file.After setting up LinkedIn, set the LINKEDIN_USER_ID
environment variable to the user ID of the account that you want to use to post to LinkedIn. (e.g LINKEDIN_USER_ID="your_linkedin_email_address@example.com"
)