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.

CommentFileSizeAuthor
#7 metatag-n2170771-7.patch1.41 KBDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Title: HTTPS Site: Need to get image to use og:image:secure_url » Add og:image:secure_url meta tag
Component: Code » Open Graph
Category: Support request » Feature request

So basically this is a feature request to add the og:image:secure_url meta tag :)

DamienMcKenna’s picture

Assigned: Cara Toon » Unassigned
Cara Toon’s picture

That would be ridiculously awesome :)

Cara Toon’s picture

Or even just a work around in the meantime. I'm not afraid to code I just don't know what I'm doing.

Cara Toon’s picture

Matt 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

Cara Toon’s picture

Thankyou Matt and Damien. Glad it was a simple as copying it into the theme template.php file.

DamienMcKenna’s picture

Version: 7.x-1.0-beta7 » 7.x-1.x-dev
Status: Active » Needs review
Issue tags: +Nodewords-Metatag feature parity
FileSize
1.41 KB

This should do it.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. This will be in beta9.

Status: Fixed » Closed (fixed)

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