Sharing: Social Sharing Meta Tags for Albums #949

Open
opened 2026-02-20 00:02:24 -05:00 by deekerman · 1 comment
Owner

Originally created by @localjo on GitHub (May 19, 2021).

One of the main reasons I'm using PhotoPrism is so I can share photos with friends and family without hosting them on Facebook/Instagram, etc. I do however, still want to occasionally share my PhotoPrism albums via social media (Facebook, Twitter, LinkedIn, Telegram, Slack, etc).

Right now, when I share an album on one of these sites, there is no image preview, so the post gets very little attention:

Screen Shot 2021-05-19 at 11 17 21 PM

Adding og:image, and twitter:image meta tags would go a long way to making albums more shareable on social media, even if the URL of these tags is just the first image in the album as a first step. Then sharing on social media would look more like this:

Screen Shot 2021-05-19 at 11 16 56 PM

Here's a quick explanation of how these meta tags work: https://css-tricks.com/essential-meta-tags-social-media/

I think this is a pretty low hanging fruit, which could be implemented with low effort and low maintenance burden. I'd be happy to submit a PR soon, but I just installed PhotoPrism this week, so I need to find the free time to get a development setup working.

Originally created by @localjo on GitHub (May 19, 2021). One of the main reasons I'm using PhotoPrism is so I can share photos with friends and family without hosting them on Facebook/Instagram, etc. I do however, still want to occasionally share my PhotoPrism albums via social media (Facebook, Twitter, LinkedIn, Telegram, Slack, etc). Right now, when I share an album on one of these sites, there is no image preview, so the post gets very little attention: ![Screen Shot 2021-05-19 at 11 17 21 PM](https://user-images.githubusercontent.com/516388/118885703-63298e00-b8f8-11eb-886d-1cee6f0663ca.png) Adding `og:image`, and `twitter:image` meta tags would go a long way to making albums more shareable on social media, even if the URL of these tags is just the first image in the album as a first step. Then sharing on social media would look more like this: ![Screen Shot 2021-05-19 at 11 16 56 PM](https://user-images.githubusercontent.com/516388/118886528-59545a80-b8f9-11eb-9e02-cd2e8cc7d58b.png) Here's a quick explanation of how these meta tags work: https://css-tricks.com/essential-meta-tags-social-media/ I think this is a pretty low hanging fruit, which could be implemented with low effort and low maintenance burden. I'd be happy to submit a PR soon, but I just installed PhotoPrism this week, so I need to find the free time to get a development setup working.
Author
Owner

@graciousgrey commented on GitHub (May 20, 2021):

Should be done in combination with https://github.com/photoprism/photoprism/issues/25

@graciousgrey commented on GitHub (May 20, 2021): Should be done in combination with https://github.com/photoprism/photoprism/issues/25
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#949
No description provided.