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.
I have a video on my blog post that I would like to show when I post the link the blog post on facebook.
I'm not sure how to set my opengraph meta tags.
I am using the media module to add video and I have the field, field_homepage_media
I've tried
Open Graph Video (URL): [node:field_homepage_media]
Open Graph Video Type: application/x-shockwave-flash (I'm not sure if this is correct, I want a preview of the video to show)
but no video is showing when I share the link.
How do I set this up?
Thanks
Comments
Comment #1
bserem CreditAttribution: bserem commentedCan you please paste the og:video metatag as it is generated by drupal?
Also, pass it by facebooks debug tool and paste the output here.
Comment #2
kumkum29 CreditAttribution: kumkum29 commentedHello,
I use this token : [node:field-video] in the og:video metatag.
But, i have not the url of my video. I get this :
What can I change in the token to get the Url / Width / Height... of my video ?
Thanks for your help.
Comment #3
Perignon CreditAttribution: Perignon commentedYou must have the URL of your video in the open graph url. Cannot really answer your problems related to your field because that is a site-specific question, not really a Metatag question. I say this issue should be closed. Videos do show on Facebook using this module.