WatificationDocs
Channels

Set up the LinkedIn app

For the person who runs this Watification server. Create the LinkedIn Community Management app, request its products, and set the redirect URL, webhook URL and environment variables that LinkedIn Company Page comments need.

This page is for the owner or operator of a Watification server. It is not needed by workspace members. A workspace connects its Company Page from Channels once the app below is set up for the server.

LinkedIn Page comments need one LinkedIn developer app for the server. Until LinkedIn approves it, the LinkedIn features stay off or show "Reconnect" or "Not approved". Nothing breaks: the rest of Watification works as before.

LinkedIn reviews the app. Development access works for test Pages only. For real customer Pages, LinkedIn must approve the Standard tier after a screencast review. Plan for that review before you promise LinkedIn comments to customers.

Before you start

  • A verified LinkedIn Company Page.
  • A super admin of that Page who can verify the app. The app must be verified by someone who administers the Page.
  • A business email address for the app. A personal address fails review.
  • The app name and logo must not use LinkedIn names or logos.
  • Create a new app for the comments. It must hold no other LinkedIn products when you request Community Management.

Steps

Create the developer app

In the LinkedIn Developer Portal, create a new app. Name it after your brand, add the logo, and link the verified Company Page. Confirm the page admin's verification when LinkedIn asks for it.

Write down the Client ID, the Client Secret and the numeric Developer application ID from the app's settings. You will need them in the last step.

Request Community Management

In the Products tab, request Community Management API. Apply for the Development tier first. It lets you test with Pages you administer, but it polls for comments and has a daily call limit.

Then apply for the Standard tier. LinkedIn asks for a short screen recording of each use case:

  • connecting a Page,
  • a comment arriving,
  • a public reply,
  • deleting a comment,
  • liking a comment as the Page,
  • the Page's posts with their comment, like and impression counts,
  • the webhook flow.

Standard is the tier that sends comments by webhook. Development must be finished within 12 months.

If the portal greys out the product, LinkedIn's Community Management FAQ explains the steps to unlock it.

In the same request, ask LinkedIn whether the app can use programmatic refresh tokens. They are optional: without them, the member signs in again every 60 days and the dashboard reminds them. When LinkedIn turns them on, Watification renews the access by itself and stops sending the reminder while the renewal is possible. Nothing else needs to change.

Leads are not part of this app

LinkedIn Lead Gen Form leads are planned on a separate Ads app, not on the comments app. You do not request Lead Sync here. Leave LINKEDIN_LEADS_ENABLED at false.

Set the redirect URL

In the Auth tab, add this redirect URL. Replace <dashboard> with your dashboard's address:

https://<dashboard>/app/channels/linkedin/callback

It must be https, with no query string.

Set the webhook URL

Your webhook address must be reachable from the internet over https. For comments, the URL is:

https://<webhook-host>/webhooks/linkedin/social

In the Webhooks tab, register this URL. LinkedIn shows that tab only for apps with an approved webhook use case. LinkedIn then checks the URL with a challenge and repeats the check about every two hours. If the check fails three times in a row, LinkedIn stops sending.

Set the environment variables

Set these on the server. They are read by the api, the worker and the webhook-ingress service, as noted.

VariableSet onWhat it is
LINKEDIN_CLIENT_IDapi, workerThe app's Client ID.
LINKEDIN_CLIENT_SECRETapi, worker, webhook-ingressThe app's Client Secret. Never shown in logs. The webhook check uses it too.
LINKEDIN_DEVELOPER_APPLICATION_IDapi, workerThe numeric developer application ID.
LINKEDIN_REDIRECT_URIapiThe redirect URL from the Auth step.
LINKEDIN_SOCIAL_WEBHOOK_URLapiThe comments webhook URL from the webhook step.
LINKEDIN_API_TIERapi, workerdevelopment (the default) or standard. Set standard only after LinkedIn approves it.
LINKEDIN_OUTBOUND_SEND_ENABLEDapi, workertrue lets Watification post replies to LinkedIn. Off by default. Set it the same on the api and the worker.
LINKEDIN_AI_COMMENT_REPLIES_ENABLEDapi, workertrue lets the AI answer comments on your Page in public. Off by default. It also needs LINKEDIN_OUTBOUND_SEND_ENABLED.

Set the first five as a group. The api refuses to start when only some of them are set. The worker needs the Client ID and Client Secret together.

Optional settings also exist: LINKEDIN_SCOPES (leave it empty to use the comment permissions), LINKEDIN_API_VERSION, the daily call limits, the poll interval and the retention times. The full list, with defaults, is in the server's .env.example file under the LinkedIn heading. Do not change the retention times unless counsel has checked the new values, because LinkedIn caps how long comment text and commenter names may be kept.

Restart and check

Restart the api, the worker and the webhook-ingress service. In the dashboard, open Channels, choose Add channel, then LinkedIn. Connect a test Page you administer. When the Page appears in the list and comments arrive in the inbox, the setup works.

For a first test, LinkedIn's test organization (urn:li:organization:2414183) can be used without being an administrator. Anything posted there is public, so use it only for test comments.

If something is wrong

  • "Reconnect" or "Not approved" on the LinkedIn channel: the app is not approved for that product or tier yet. Check the Products tab.
  • The api does not start: some of the first five variables are set and others are missing. Set all five or remove them all.
  • Comments do not arrive: check that the webhook URL is public https, that the challenge passes in the Webhooks tab, and that the webhook-ingress service has the same LINKEDIN_CLIENT_SECRET.
  • A customer's Page disconnects after a while: the member who connected it must sign in with LinkedIn again. LinkedIn does not renew access silently unless the app has programmatic refresh tokens, and the dashboard warns seven days and one day before expiry.
  • The AI does not answer comments on LinkedIn: it is off until you set LINKEDIN_AI_COMMENT_REPLIES_ENABLED=true (and LINKEDIN_OUTBOUND_SEND_ENABLED=true). Read the LinkedIn data rules with your adviser first: the AI reads a member's comment once, when it answers, and keeps nothing of it.

On this page