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.

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
StatusFileSize
new677 bytes

How's this?

liberatr’s picture

StatusFileSize
new704 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.