Authenticate with Linkedin

To show LinkedIn feed on stream, you have to generate  Client ID and Client Secret And put them on Social Streams App settings page. You have to be admin of the LinkedIn page you want to stream. That’s a Linkedin requirement.

Please note

This is a unified guide for all Social Stream Apps, including Flow-Flow for WordPress and Shopify, Grace Instagram Gallery, and all upcoming streaming apps. Here and below by any mention of  Plugin or Social Stream App mean one of the apps or plugins listed above.

Register a new LinkedIn App

  1. Head over to https://www.linkedin.com/developers/apps and log in, if necessary.
  2. Click on Create Application.
  3. Enter all required fields. You can use dummy info, but it will be more useful to enter some typical values.
  4. Hit Submit.
  5. Copy Client ID and Client Secret from AUTH tab on next page and paste to plugin’s admin page under Auth tab on the plugin admin page.
  6. Open Auth tab on the LinkedIn page again, scroll down, open OAuth 2.0 settings section and enter your site URL to Redirect URLs field:
  7. Hit Update to save this info.

Getting Access Token

  1. Using your LinkedIn app details replace placeholders for next URL:

    https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=APP_CLIENT_ID&state=DONT_CHANGE_THIS&redirect_uri=APP_REDIRECT_URI&scope=rw_company_admin
    Where APP_REDIRECT_URI should be your site URL from OAuth 2.0 settings (with slash / at the end).
  2. After you sign in in Linkedin and click Apply you will be redirected to page you specified as APP_REDIRECT_URI, in its URL you will see parameter ?code=SOME_CODE. Copy and save this code. Please notice that URL also has &state=DONT_CHANGE_THIS, ignore this part when copying the code.
  3. Now replace placeholders in this URL and visit it in a browser:

    https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&code=YOUR_CODE&redirect_uri=APP_REDIRECT_URI&client_id=APP_CLIENT_ID&client_secret=APP_CLIENT_SECRET
  4. Finally, copy Access code from the page (valid for 60 days) and paste it in Flow-Flow auth settings.