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
- Navigate to the Data Integration Account.
- Click Connections and select + New Connection.
- Choose LinkedIn Social connection.
- Enter the desired name for your connection in the Connection Name field.
- Click Connect to LinkedIn Social.
- Enter your LinkedIn username and password.
- 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
- A valid LinkedIn application.
- Scopes
rw_organization_adminandr_organization_socialare enabled for the application. - A personal LinkedIn account.
Creating a new LinkedIn Social connection
- Navigate to the Data Integration Account.
- Click Connections and select + New Connection.
- Select LinkedIn Social and enter a connection name.
- Provide the client ID and client secret of your LinkedIn application. You can find these details on your LinkedIn application page.
- Add the Data Integration Authorized Redirect URL to your LinkedIn app:
- Enter
https://console.rivery.io/api/oauthcallback/linkedininto the Authorized Redirect URLs list. - Click Add and Update to save the changes.
- Enter
- In Data Integration, enter the client ID, client secret, the necessary scopes, and click Connect With LinkedIn.
- A LinkedIn login pop-up appears. Enter your credentials and approve access.
- Click Test Connection to verify the connection can handle the task.
- 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
- Go to your Data Integration LinkedIn connection.
- Remove the current connection by clicking Disconnect.
- 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.