Head over to Linkedin developers and create a new app.
Fill in all the details, once created head over to Products and make sure you add all the required products.
It is important to request the Advertising API permissions and fill up the request form, or you will not have the ability to refresh your tokens.
The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL
+ /integrations/social/
+ linkedin
.
- eg: If you are running on a container, and your Postiz URL is:
https://postiz.example.com
, then your OAuth2 Redirect URI ishttps://postiz.example.com/integrations/social/linkedin
- eg: If you are running on localhost, and your Postiz URL is
http://localhost:4200
, then your OAuth2 Redirect URI ishttp://localhost:4200/integrations/social/linkedin
You only need to set one OAuth2 Redirect URI when you are setting up your Postiz app.
If you are using the “LinkedIN Page” provider, then the redirect url should be “linkedin-page”.
Copy the created Client ID
and Client Secret
and add them to your .env
file.
LINKEDIN_CLIENT_ID=""
LINKEDIN_CLIENT_SECRET=""
You can find those under the Auth Tab of your LinkedIn App in the developer portal.