brillout / libframe

2 stars 2 forks source link

Add Open Graph Protocol meta tags for social media preview #5

Open louwers opened 2 years ago

louwers commented 2 years ago

Right now sharing a link to the Telefunc docs on LinkedIn (as an example) looks like this:

https://www.linkedin.com/post-inspector/inspect/https:%2F%2Ftelefunc.com%2F

Discord, Twitter, Facebook, Telegram, Signal, etc. all use The Open Graph Protocol to fetch a description and image preview. It would be great if this could be baked into libframe, because shared links look much more appealing!

The page linked above also explains how to add the properties (down at the bottom if you click a property).

brillout commented 2 years ago

👍 PR welcome :-). Are there libraries that automatically generate them?

(In case you do want to do a PR: use the vite-plugin-ssr repo and not the telefunc repo. Because vps uses the latest libframe commit whereas Telefunc uses an older libframe commit.)