We help IT Professionals succeed at work.

Sharing YouTube video on Facebook - force https thumbnail?

Chris Millard
Chris Millard asked
on
I have a hosted website running Wordpress and a plugin that places recent posts from my Facebook page and Twitter feeds onto a specific page.

I am trying to move my site to using https. It is on a dedicated IP with a private SSL certificate.

If I share a YouTube video onto my Facebook page, although the link to the video itself may be an https link, the thumbnail image always appears to be from the non-secure YouTube URL

This is the YouTube video in question in this instance:-

https://www.youtube.com/watch?v=PAD_E1kaYuY&spfreload=10

When I paste this URL into Facebook, the thumbnail image that is shown is:-

http://i.ytimg.com/vi/PAD_E1kaYuY/maxresdefault.jpg

Subsequently, when the plugin loads my social media feeds, my site loses it's padlock because of the YouTube image.

Is there a way to force thumbnails from https://i.ytimg.com rather than http://i.ytimg.com ?
Comment
Watch Question

Top Expert 2016

Commented:
https://fbexternal-a.akamaihd.net/safe_image.php?d=AQC4G8cjUTdoWGmD&w=158&h=158&url=http%3A%2F%2Fi.ytimg.com%2Fvi%2FPAD_E1kaYuY%2Fmaxresdefault.jpg&cfs=1&upscale=1&sx=425&sy=0&sw=1080&sh=1080

Open in new window

is the link that I got when I click on the thumbnail properties
Look at the url= properties:-

http%3A%2F%2Fi.ytimg.com%2Fvi%2FPAD_E1kaYuY%2Fmaxresdefault.jpg

It seems to be this that is causing me the problem.
Top Expert 2016

Commented:
I can view the image on https too, but when I'm sharing a YouTube video to Facebook, I don't get given an option to embed the https link - it automatically uses the http link and that it the cause of my problem.

I could of course remove the YouTube link from my Facebook timeline, but that defeats the object.
Solution not found.