I have a podcast site with a Media field. I can put multiple audio files on one field, and I have used a token [node:field_audio] to put this field's value in to the opengraph og:audio tag.

When Facebook picks it up it does not parse a comma-separated list of files, and chokes.

Can I force the og:audio tag to just have one URL in it?

I have tried a module called field_multiple_limit to try and limit the output from the display side of the node, but that did not change anything, so I think that metatags must be doing something else here, or maybe their module doesn't work with tokens.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

liberatr’s picture

liberatr’s picture

Title: Multiple value audio - force single? » Multiple value og:audio metatag - force single?
liberatr’s picture

Status: Active » Closed (fixed)

Closing. I tried the -dev version of field_multiple_limit and it works now.

DamienMcKenna’s picture

Component: Open Graph » Documentation
Category: Support request » Task
Status: Closed (fixed) » Active

Lets make this a documentation task to add that module to the README.txt. Thanks Ryan!

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
677 bytes

How's this?

liberatr’s picture

FileSize
704 bytes

My lizard brain would love it if you mentioned audio and video.

I hope this patch applies, I just edited the text file.

DamienMcKenna’s picture

Status: Needs review » Fixed

Cool. Thanks Ryan!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.