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 https website, and after much hair pulling wondering why facebook was not pulling any of my images correctly I've identified it as an issue with https.
I'm sorry if this has been addressed elsewhere, (I have looked) but what is the solution for getting metadata to point to og:image:secure_url instead of og:image
I'm not very good at coding and I'm finding a lot of the hook solutions need to be broken down for me before i can attempt to implement them.
Since the whole website is https I'm happy to replace the og:image meta entirely.
Comment | File | Size | Author |
---|---|---|---|
#7 | metatag-n2170771-7.patch | 1.41 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaSo basically this is a feature request to add the og:image:secure_url meta tag :)
Comment #2
DamienMcKennaComment #3
Cara Toon CreditAttribution: Cara Toon commentedThat would be ridiculously awesome :)
Comment #4
Cara Toon CreditAttribution: Cara Toon commentedOr even just a work around in the meantime. I'm not afraid to code I just don't know what I'm doing.
Comment #5
Cara Toon CreditAttribution: Cara Toon commentedMatt has posted a workaround here
I just don't know if it works or where to put it to make it work.
Any help would be appreciated I've been trying to find a solution for weeks.
Cheers Caitlin
Comment #6
Cara Toon CreditAttribution: Cara Toon commentedThankyou Matt and Damien. Glad it was a simple as copying it into the theme template.php file.
Comment #7
DamienMcKennaThis should do it.
Comment #8
DamienMcKennaCommitted. This will be in beta9.