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

DamienMcKenna’s picture

Title: Update the OpenGraph implementation » Update & improve the OpenGraph implementation

Tweaking the title to indicate that the current implementation sucks and needs a *lot* more work.

DamienMcKenna’s picture

I think that several improvements could be made:

  • Change the og:type field to a selector with the following options: website (default), article, book, profile, music.song, music.album, music.playlist, music.radio_station, video.movie, video.episode, video.tv_show, video.other.
  • Each of the types has additional fields, it'd be great to include those.
  • The og:title, by default, should be automatically set to the node title.
  • The og:description, by default, should be automatically set to the page description.
  • The og:url, by default, should be automatically set to the canonical URL.
  • The article subfields should be automatically assigned based on the content type.
DamienMcKenna’s picture

Unfortunately 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.

DamienMcKenna’s picture

I'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

DamienMcKenna’s picture

Spawned off a separate issue for og:url: #1565016: Make Canonical URL and og:url use the same output

DamienMcKenna’s picture

Spawned off a separate issue for the og:type field: #1565030: Make the og:type field a selector

DamienMcKenna’s picture

DamienMcKenna’s picture

Spawned off automatically assigning og:title: #1571072: Automatically assign the og:title based on the page title

DamienMcKenna’s picture

DamienMcKenna’s picture

This should also include og:video:secure_url.

DamienMcKenna’s picture

Issue summary: View changes

Metatag has recently added a bunch more: https://groups.drupal.org/node/229413

DamienMcKenna’s picture

Status: Active » Closed (won't fix)

Thank you for taking the time to work on this. However, the module is no longer supported, so I'm closing this issue.