MurhafSousli / ngx-sharebuttons

Angular Share Buttons ☂
https://ngx-sharebuttons.netlify.app/
MIT License
518 stars 124 forks source link

LinkedIn button ignores description #662

Closed mfenderov closed 1 month ago

mfenderov commented 3 months ago

Reproduction

Steps to reproduce:

  1. Add a LinkedIn button to the page
  2. Add a description and URL to a LinkedIn button
  3. Click it
  4. Only the URL is added to the post

Expected Behavior

Description from a LinkedIn button is added to the post via ?text= query attribute.

Actual Behavior

Only the URL is passed to the post.

Environment

MurhafSousli commented 2 months ago

Yea, LinkedIn ignores description since 2020 as mentioned here https://stackoverflow.com/a/61856180/1015648

If you want the title and description to be displayed, the shared page must have OG meta tags as mentioned here https://www.linkedin.com/help/linkedin/answer/a521928/making-your-website-shareable-on-linkedin?lang=en