Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The OG spec has changed and the current implementation is rather lackluster, it could use some improvements. Check http://ogp.me/ for the official specifications.
Comments
Comment #1
DamienMcKennaTweaking the title to indicate that the current implementation sucks and needs a *lot* more work.
Comment #2
DamienMcKennaI think that several improvements could be made:
Comment #3
DamienMcKennaUnfortunately the current API doesn't allow you to reuse data between fields, so there isn't a way to easily reuse the Page Title value for the OG Title value.
Comment #4
DamienMcKennaI've made the URL alias handling into a module-wide variable instead of being limited only to the Canonical URL tag, so that it can be reused for the og:url tag: #1563838: Change the "canonical URL alias" setting to a global variable
Comment #5
DamienMcKennaSpawned off a separate issue for og:url: #1565016: Make Canonical URL and og:url use the same output
Comment #6
DamienMcKennaSpawned off a separate issue for the og:type field: #1565030: Make the og:type field a selector
Comment #7
DamienMcKennaSimilar issue for Metatag (D7): #1365840: Update Open Graph tags, e.g. Image not working with Facebook Like Button
Comment #8
DamienMcKennaSpawned off automatically assigning og:title: #1571072: Automatically assign the og:title based on the page title
Comment #9
DamienMcKennaSpawned off automatically assigning og:description: #1571082: Streamline auto-generation logic for description tags, support og & dc descriptions too
Comment #10
DamienMcKennaThis should also include og:video:secure_url.
Comment #11
DamienMcKennaMetatag has recently added a bunch more: https://groups.drupal.org/node/229413
Comment #12
DamienMcKennaThank you for taking the time to work on this. However, the module is no longer supported, so I'm closing this issue.