---
title: Integrating with LinkedIn
slug: integrating-with-linkedin
docTags: 
createdAt: 2020-04-16T10:58:06.000Z
---

This documentation shows how you can add LinkedIn OAuth integration in your application.&#x20;

Before proceeding, you will first need to register your application with LinkedIn. Please refer the developer documentation provided by LinkedIn here: [https://www.linkedin.com/developers/apps/](https://www.linkedin.com/developers/apps/)



Please note: You will need to create an account with LinkedIn to access this.



:::hint{type="danger"}
**Important LinkedIn Developer Update**

LinkedIn has updated their primary Product: **Sign in with LinkedIn** to **Sign In with LinkedIn using OpenID Connect**&#x20;

All existing developer app before this change will continue to access the older Sign in with LinkedIn product, however, any new developer apps will now see the option with OpenID Connect (V2). Pathfix supports both these scopes, please follow the documentation depending on the type of app access you have.&#x20;
:::





## Enable OAuth in LinkedIn

Access your Application on LinkedIn [https://www.linkedin.com/developers/](https://www.linkedin.com/developers/apps/)

Once you have added your application in LinkedIn, you will need to navigate to `Auth`&#x20;

- Navigate to OAuth 2.0 settings
- Add the Pathfix Redirect URI `https://labs.pathfix.com/integrate/command` under the `Redirect URI` section



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/8GrOFi5KyCpFknxykqVEZ_linkedin1.png" size="94" caption="Image: OAuth setting in LinkedIn" position="center" showCaption="true"}



## Add Scope/Product in LinkedIn

Once you have added your application and added the Pathfix Redirect URL, you will need to add scopes that you wish to use.&#x20;

- Click on `Products` to get started
- There are multiple products (scopes) you can choose from depending on your user case. Pick the Product you wish to use
- The **V1 product setup**:



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/hGEp0b238-nlQ6BEWDRE4_image.png" size="64" width="1096" height="1311" position="center" showCaption="false"}



- **V2 developer Product** setup:



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/w_nrE_fiV19to543lBppd_image.png" size="64" width="935" height="1235" position="center" showCaption="false"}



:::hint{type="success"}
## Products/Scopes Details

There is an approval/review process for each Product chosen.&#x20;

'Advertising API', the product required for posting to company pages, goes through an approval cycle with the LinkedIn team.

The most common Product (scope) on LinkedIn are 'Share on LinkedIn' and 'Sign In with LinkedIn' for V1 or 'Sign In with LinkedIn using OpenID Connect' for V2. There is an approval/review process that the app will also go through, however, this approval is required by the owner of the page.&#x20;
:::



## Verify App/Company&#x20;

For Share on LinkedIn and Sign In with Linked, the approval process needs to be done by the admin/owner of the page.



- Go to `Settings` and click on `Verify`



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/z9FRMYlzTMdWim1QEExS9_Linkedin.png" size="88" caption="Image: LinkedIn Verify" position="center" showCaption="true"}



- Click on `Generate URL`

::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/myToXLKAtIdbvrrbFiHMN_linkedin2.png" size="86" caption="Image: LinkedIn Verify" position="center" showCaption="true"}





- Copy the `Verification URL` and share it with the admin/owner of the Page



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/slHQciB4UT9AI0erM0kH7_LinkedIn3.png" size="82" caption="Image: LinkedIn Verification" position="center" showCaption="true"}



- The app would need to be verified



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/uWrzJwyMMUetpAwL5cYrg_LinkedIn4.png" size="90" caption="Image: LinkedIn Verified" position="center" showCaption="true"}



- The Scope will get added to your application
- You can view this by going to `OAuth` -> `OAuth 2.0 scopes`



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/AnoQT8dipNRSd9TAyWE9U_LinkedIn5.png" size="80" caption="Image: LinkedIn OAuth Scopes" position="center" showCaption="true"}





## Setup in Pathfix



- Login to your Pathfix account and click on `Add Application`
- Add the name of your SaaS and hit `Save`
- Select LinkedIn from the list of providers to integrate with. You can change the Display `Name` and `Description`.&#x20;
- Enter the `Client ID` and `Client Secret` generated from LinkedIn
- Add the Scopes you wish to access under `Scope`&#x20;
  - For V1, the login basic scopes will be **r\_liteprofile r\_emailaddress w\_member\_social**
  - For V2, the login basic scopes will be **openid profile email**
- Add any additional scopes according to your usecase
- Hit `Save`



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/59Dm6OqbTKLW4nVvDYI6b_image.png" size="64" width="1172" height="1052" position="center" showCaption="false"}



If you are looking to offer **Single Sign-On (SSO)** login functionality in your app, please add the **LinkedIn Identity** integration from the Identity Auth section of your Pathfix dashboard instead:

- Select LinkedIn Identity for V1 product access
- Select LinkedIn v2 for V2 product access with OpenID Connect



![](https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/tNUxTyIc97200n8Jgjvrj_image.png)



## Adding Integration To Your SaaS

There are 2 steps to adding the integration to your SaaS

1. [End-user authorization](docId\:MsCMNgUGRsGrzSCMLCiXf)
2. [Enable pass-through API](docId\:JiDAxEPNR2Owz8w4_JpBK)



To add the integration to your Bubble app, please follow this documentation [Bubble.io Setup](https://docs.pathfix.com/bubble)



Need help? Reach out to us at support\@pathfix.com and we would be happy to assist!

