Skip to main content
Feedback

LinkedIn Social connection

You can establish the connection from Data Integration to LinkedIn Social. The connection setup process covers the requirements for LinkedIn’s auto-refresh token mechanism and provides instructions for connecting if you do not have a custom app.

Connecting using a LinkedIn user

Procedure

  1. Navigate to the Data Integration Account.
  2. Click Connections and select + New Connection.
  3. Choose LinkedIn Social connection.
  4. Enter the desired name for your connection in the Connection Name field.
  5. Click Connect to LinkedIn Social.
  6. Enter your LinkedIn username and password.
  7. Approve Data Integration access to LinkedIn Social reporting data.

Once authorized, Data Integration can pull LinkedIn Social data for your reporting needs.

Connecting using a custom application

Auto-Refresh token mechanism

To use LinkedIn’s auto-refresh token feature, a custom application is required. This ensures that tokens are automatically refreshed without user intervention every 60 days.

Prerequisites for creating a custom LinkedIn connection

  1. A valid LinkedIn application.
  2. Scopes rw_organization_admin and r_organization_social are enabled for the application.
  3. A personal LinkedIn account.

Creating a new LinkedIn Social connection

  1. Navigate to the Data Integration Account.
  2. Click Connections and select + New Connection.
  3. Select LinkedIn Social and enter a connection name.
  4. Provide the client ID and client secret of your LinkedIn application. You can find these details on your LinkedIn application page.
  5. Add the Data Integration Authorized Redirect URL to your LinkedIn app:
    • Enter https://console.rivery.io/api/oauthcallback/linkedin into the Authorized Redirect URLs list.
    • Click Add and Update to save the changes.
  6. In Data Integration, enter the client ID, client secret, the necessary scopes, and click Connect With LinkedIn.
  7. A LinkedIn login pop-up appears. Enter your credentials and approve access.
  8. Click Test Connection to verify the connection can handle the task.
  9. Once authentication is successful, save the connection.

Manual token refresh

The tokens do not refresh automatically for clients without a custom application. The access token issued by LinkedIn has a lifespan of 60 days and requires a manual refresh.

Procedure

  1. Go to your Data Integration LinkedIn connection.
  2. Remove the current connection by clicking Disconnect.
  3. Reconnect to your LinkedIn account following the same steps for a user-based connection (To learn more, refer to the Connecting using LinkedIn user section).

This generates a new token, valid for another 60 days. Repeat this process every 60 days to ensure uninterrupted access.

Troubleshooting

If your access token expires, you may encounter the following error message:

Testing connection to LinkedIn Failed: 'Failed to refresh access token. Status: 400, Error: The provided authorization grant or refresh token is invalid, expired or revoked'.

Follow the manual refresh steps to regenerate a valid token.

On this Page