-
Notifications
You must be signed in to change notification settings - Fork 53
Add details for Linkedin Pages integration #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cedb93f
ac5894d
86ceda3
13514d2
b641040
b1e490d
0259f71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,30 @@ | ||||||||||||||||||||||||||||||||||
--- | ||||||||||||||||||||||||||||||||||
title: LinkedIn Page | ||||||||||||||||||||||||||||||||||
description: How to add a LinkedIn Page to your system | ||||||||||||||||||||||||||||||||||
--- | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
import OAuth2Redirect from "../../components/snippets/oauth2redirect.tsx"; | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Head over to [LinkedIn developers](https://www.linkedin.com/developers/apps) and create a new app. | ||||||||||||||||||||||||||||||||||
 | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Verify your app with LinkedIn | ||||||||||||||||||||||||||||||||||
 | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
You will need to follow the verification process to request the necessary permissions listed below. | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Fill in all the details, once created head over to Products and make sure you add all the required products. | ||||||||||||||||||||||||||||||||||
 | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Comment on lines
+16
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add OAuth redirect URL configuration steps. Critical configuration steps for OAuth callback URLs are missing. Add instructions for configuring OAuth redirect URLs: Fill in all the details, once created head over to Products and make sure you add all the required products.

+
+Configure the OAuth 2.0 settings:
+1. Go to the Auth tab in your LinkedIn app
+2. Add the following OAuth 2.0 redirect URL:
+ ```
+ https://your-domain.com/api/auth/callback/linkedin-page
+ ```
+3. Save the changes 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||
It is important to request the Advertising API permissions and fill up the request form, or you will not have the ability to refresh your tokens. | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
<OAuth2Redirect provider = "linkedin-page" /> | ||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance OAuth implementation documentation. The OAuth implementation section needs more context and error handling guidance. Add more detailed implementation information: +## OAuth Implementation
+
+The OAuth2 authentication flow consists of the following steps:
+1. User initiates the LinkedIn Page connection
+2. User is redirected to LinkedIn for authorization
+3. After authorization, LinkedIn redirects back to your application
+
<OAuth2Redirect provider = "linkedin-page" />
+
+### Error Handling
+
+Common OAuth errors and how to resolve them:
+- `invalid_request`: Check if all required parameters are properly configured
+- `access_denied`: User denied the authorization request
+- `invalid_scope`: Verify the requested permissions are approved in your LinkedIn app 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Copy the created `Client ID` and `Client Secret` and add them to your `.env` file. | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
```env | ||||||||||||||||||||||||||||||||||
LINKEDIN_CLIENT_ID="" | ||||||||||||||||||||||||||||||||||
LINKEDIN_CLIENT_SECRET="" | ||||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||||
You can find those under the Auth Tab of your LinkedIn App in the developer portal. | ||||||||||||||||||||||||||||||||||
Comment on lines
+24
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add security best practices for credential handling. The environment configuration section should include security recommendations. Add security guidelines: Copy the created `Client ID` and `Client Secret` and add them to your `.env` file.
```env
LINKEDIN_CLIENT_ID=""
LINKEDIN_CLIENT_SECRET="" -You can find those under the Auth Tab of your LinkedIn App in the developer portal.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
List the specific permissions required for integration.
The documentation mentions "necessary permissions" but doesn't list them explicitly. This could lead to confusion during setup.
Add a list of required permissions, for example:
📝 Committable suggestion