[template] Add Open Graph Metadata #239

Closed
opened 2026-10-04 23:48:36 +02:00 by adam · 9 comments
Owner

Reported by mistic100 on 11 Oct 2013 16:27

In order to improve integration in social networks.

In particular og:image on photo page (otherwise Google+/Facebook choose the first image on the page).

documentation : http://ogp.me

Piwigo Bugtracker #2972

**Reported by mistic100 on 11 Oct 2013 16:27** In order to improve integration in social networks. In particular og:image on photo page (otherwise Google+/Facebook choose the first image on the page). documentation : http://ogp.me [Piwigo Bugtracker #2972](http://piwigo.org/bugs/view.php?id=2972) <!-- github-sync-id:97226672 -->
adam closed this issue 2026-10-04 23:48:36 +02:00
Author
Owner

+1

+1 <!-- github-comment-id:301295644 -->
Author
Owner

+100000

+100000 <!-- github-comment-id:312515998 -->
Author
Owner

Why was this closed? The fact that og:image is one reason that networks like FB have trouble creating image previews

Why was this closed? The fact that og:image is one reason that networks like FB have trouble creating image previews <!-- github-comment-id:468979201 -->
Author
Owner

It is not closed...

It is not closed... <!-- github-comment-id:468995785 -->
Author
Owner

My apologies. I saw the "Closed" flag above and didn't realize it was referring to another issue.

Are there plans to support og:* tags?

My apologies. I saw the "Closed" flag above and didn't realize it was referring to another issue. Are there plans to support og:* tags? <!-- github-comment-id:469031896 -->
Author
Owner

+1 for this feature, long overdue :)

+1 for this feature, long overdue :) <!-- github-comment-id:959892755 -->
Author
Owner

If this can help with the implementation, there is https://piwigo.org/ext/extension_view.php?eid=889 but it feels a bit hacky; I managed to make it work on my end but it felt a bit clunky, it would be better if this was a core feature—enabled by default (because you can't really ignore social media these days) and designed to be simple to understand and manage (if not fully automatic).

If this can help with the implementation, there is https://piwigo.org/ext/extension_view.php?eid=889 but it feels a bit hacky; I managed to make it work on my end but it felt a bit clunky, it would be better if this was a core feature—enabled by default (because you can't really ignore social media these days) and designed to be simple to understand and manage (if not fully automatic). <!-- github-comment-id:960229509 -->
Author
Owner

@nekohayo I tried it out earlier, but it's for writing static OG data for various pages. Having some (non-hacky) method of generating OG data for galleries and single images seems like an absolute must-have feature in 2021. I couldn't decipher exactly what variables are available in the templates, but I guess it could be hacked in there somehow, but it should definitely be a core feature.

@nekohayo I tried it out earlier, but it's for writing static OG data for various pages. Having some (non-hacky) method of generating OG data for galleries and single images seems like an absolute must-have feature in 2021. I couldn't decipher exactly what variables are available in the templates, but I guess it could be hacked in there somehow, but it should definitely be a core feature. <!-- github-comment-id:960287968 -->
Author
Owner

After some discussion, we've decided this should be handled in the plugin above rather than in the core. We may have to improve the plugin in the future.

After some discussion, we've decided this should be handled in the plugin above rather than in the core. We may have to improve the plugin in the future. <!-- github-comment-id:3052523101 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#239