face-hh / lyntr

Micro-blogging social media - with an IQ test. https://lyntr.com
https://lyntr.com
Other
187 stars 59 forks source link

Feature: Add open graph protocol (or equivalent) to support rich embeds on multiple platforms #103

Closed mariano-f-r closed 1 month ago

mariano-f-r commented 1 month ago

Competing platforms (namely X, but also Reddit), make use of the Open Graph Protocol or analog to create richer embeds on other platforms. I think that adding a similar feature to Lyntr would be a good idea, as it would help create parity between the two, and allow for Lyntr posts to be embedded with feature parity to X posts.

2 possible options for this feature are the OpenGraph Protocol, utilized by Meta, and the Twitter card protocol, used by X.

This can be implemented by simply generating the correct information, and adding it to the head tag. Here is an example of Open Graph:

<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="https://www.imdb.com/title/tt0117500/" />
<meta property="og:description" content="Goofy ahh movie" />
<meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" />
face-hh commented 1 month ago

Duplicate of #96. It's being worked on :+1: