Embedding LinkedIn post on site | Community
Skip to main content
April 18, 2022
Solved

Embedding LinkedIn post on site

  • April 18, 2022
  • 2 replies
  • 2704 views

Hello All,

 

I have tried many ways to render the linkedin post and display that on my site. But, it didn't work like twitter(currently only few social medias are supported by embed component). In my analysis I think linkedin isn't supporting oembed behaviour. Can some one help me with embedding linkedin posts.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anmol_Bhardwaj

I don't think linkedin would work like Pintrest & YouTube works in the embed component.

However, if you don't want to include iframe, you can use the open APIs linkedIn provides and create a variation of embed which can work in a similar way.

 

Documentation: https://docs.microsoft.com/en-us/linkedin/?context=linkedin/contextn 

2 replies

Anmol_Bhardwaj
Community Advisor
Community Advisor
April 19, 2022

You can follow the steps mentioned in this official post

 

Although it will not work like how YouTube and Twitter works in the embed component. You can add another option where it should just embed/paste the whole code which we obtain from the steps mentioned into our HTML.

 

Pramod29Author
April 19, 2022

Hi Anmol,

 

Thanks for your reply. I have tried earlier this linkedin approach. But, I want to use embed component's URL or like how pinterest is working currently instead of using iframe from this method. 

Anmol_Bhardwaj
Community Advisor
Anmol_BhardwajCommunity AdvisorAccepted solution
Community Advisor
April 19, 2022

I don't think linkedin would work like Pintrest & YouTube works in the embed component.

However, if you don't want to include iframe, you can use the open APIs linkedIn provides and create a variation of embed which can work in a similar way.

 

Documentation: https://docs.microsoft.com/en-us/linkedin/?context=linkedin/contextn 

Himanshu_Jain
Community Advisor
Community Advisor
April 19, 2022

You need to utilize some OAuth library 

 

Check https://stackoverflow.com/questions/13232697/linkedin-api-authentication-using-java it may help

Himanshu Jain