# How to get Linkedin API

**Step 1:** Create a Linkedin Develop Account via the website: <https://developer.linkedin.com/>

**Step 2:** Create an app ( Need a company page).

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2FhB6w07bXSj1yFX855sQx%2FCreate%20app%20linkedin.png?alt=media&#x26;token=0b4fde08-5196-4b36-a1cf-330654b71d2e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2FAF64WvGCLM2RWQEgPPaX%2FEnter%20infor%20app.png?alt=media&#x26;token=b476d918-4cb9-41c4-882c-02dabb1b600a" alt=""><figcaption></figcaption></figure>

a. **App name:** Enter the name of the app.

b. **Linkedin Page:** Enter your company's name or LinkedIn Compay Page URL.

c. **Privacy policy URL:** Enter your app privacy policy.

d. **App Logo:** Upload the app logo image.

e. L**egal agreement**: Select " I have read and agree to these terms"&#x20;

And then click the button **Create app**.

**Step 3:** Verify the app

**Step 4:** Add Product: In your app dashboard, select the tab **Products** -> Click Select 2 options: **Share on LinkedIn** and **Sign In with LinkedIn**

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2Ff7RYoxFV9cMRtpZTNQa1%2FAdd%20product.png?alt=media&#x26;token=7f2e86b1-9a12-4fd5-970b-09d1c20da4af" alt=""><figcaption></figcaption></figure>

**Step 5:** Get API the app: In your app dashboard, select tab **Auth**-> **Authentication keys** and then get the Client ID and Client Secret

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2FRzTHZpi2YlqnDKcXNbrj%2Fget%20API.png?alt=media&#x26;token=60f52335-d781-4540-95b9-ceb9b8929830" alt=""><figcaption></figcaption></figure>

**Step 6:** Enter the key in Civi. Go to **Admin** -> **Civi** -> **Theme Options** -> **Login Option** -> Enter the Linkedin Client ID and Linkedin Secret

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2FLG0baZkYj47Pi21uLox6%2FEnter%20key%20in%20theme%20option.png?alt=media&#x26;token=31d88966-f354-4615-a153-910036a4a68b" alt=""><figcaption></figcaption></figure>

**Step 7:** Authorized redirect URL. You need to get a redirect URL. In your app dashboard, select tab Auth-> Scroll down and find option **OAuth 2.0 settings** and add the URLs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              &#x20;

<figure><img src="https://947744334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjG66evEIMBXknuFytIuq%2Fuploads%2FAP98ybQjtXsfdQuLgLkD%2FAuthozied%20redired%20URL.png?alt=media&#x26;token=0fe40cec-961d-4b83-922a-f8d6d0fcfa96" alt=""><figcaption></figcaption></figure>

You can follow this video for a guide:&#x20;

{% embed url="<https://www.youtube.com/watch?v=YJoof1kX_kQ>" %}
