internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
4.99k stars 1.25k forks source link

Improve social share preview for collections / subjects #9077

Open RayBB opened 2 months ago

RayBB commented 2 months ago

Related to:

e.g. https://openlibrary.org/people/mekBot/lists/OL103955L/Childhood_Favorites/preview.png image

Describe the problem that you'd like solved

We don't have a great social preview for collections. It doesn't show a little text about the collection or image.

Here is FB's tool to improve social share.

Example link: https://openlibrary.org/collections/kingdom-of-hawai'i-people What it looks like on Facebook:

image

What it looks like on Slack:

image

I'm sure it is just as bad on other apps.

Proposal & Constraints

Perhaps we can grab the first few hundred characters and set it as the description. Grabbing the first image would be nice too.

Additional context

Stakeholders

rebecca-shoptaw commented 2 months ago

I'd be very happy to take this on! Looks like the existing code for the list preview could be relatively simply re-used for this purpose as well. 😊

RayBB commented 2 months ago

@rebecca-shoptaw I've assigned you 👍 Good luck!

rebecca-shoptaw commented 1 month ago

Heads up @mekarpeles -- just unassigned myself from this, as I won't reasonably have the time to devote to it around all my other fellowship work and I've already completed the part I was most excited about (#9224). 🙂