Skip to content
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

LinkedIn #186

Open
awhitford opened this issue Feb 20, 2025 · 3 comments
Open

LinkedIn #186

awhitford opened this issue Feb 20, 2025 · 3 comments
Labels
new service Issues and PRs for adding new embed providers

Comments

@awhitford
Copy link

I have interest in showcasing LinkedIn posts too.

LinkedIn posts can offer code to Embed this post, like:

<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:ugcPost:7289953683264434176"
height="665" width="504" frameborder="0" allowfullscreen="" title="Embedded post"></iframe>

Could we get LinkedIn support too please?

@delucis delucis added the new service Issues and PRs for adding new embed providers label Feb 20, 2025
@delucis
Copy link
Owner

delucis commented Feb 20, 2025

Do you know if LinkedIn provides an API to get post data? Couldn’t see one in a quick search, but that’s probably what is needed. Otherwise just using their <iframe> code directly may be the best people can do.

@delucis
Copy link
Owner

delucis commented Feb 20, 2025

Looks like it might be. It does require authorization though, for example this request for data for the embed you shared above:

curl -X POST 'https://api.linkedin.com/rest/posts/7289953683264434176' -H 'X-Restli-Protocol-Version: 2.0.0' -H 'LinkedIn-Version: 202412' --data ''

Returns:

{"status":401,"serviceErrorCode":65604,"code":"EMPTY_ACCESS_TOKEN","message":"Empty oauth2 access token"}

That does mean I’m personally very unlikely to implement this as I don’t have a LinkedIn account (which would also complicate testing I guess as tests in this repo would need a token). But maybe someone is interested in working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new service Issues and PRs for adding new embed providers
Projects
None yet
Development

No branches or pull requests

2 participants