energy-data / energydata.info

energydata.info - open data and analytics for a sustainable energy future
http://energydata.info
MIT License
26 stars 6 forks source link

Shared links to Social Media have no thumbnails #238

Closed jodiegardiner closed 6 years ago

jodiegardiner commented 6 years ago

This is determined by a meta tag like so:

<meta property="og:image" content="https://energydata.info/images/meta/default-meta-image.png" />

This tag is present at the moment, so the image must be corrupted.

shandaoz commented 6 years ago

Hi Jodie, I am don't quite understand the phrase "the image must be corrupted". Do you mean because there is a meta tag in place, we can't add any images to it? When we share a dataset on social media, the shared link does not have any thumbnail image and doesn't look good. Is there a way for us to add thumbnail images or use one image for all social media links?

jodiegardiner commented 6 years ago

Sorry if I wasn't clear shandaoz. I know how to fix this (the default image we use has become corrupted so it just needs replaced.) My comment above is just for documentation rather than a task for anyone else.

shandaoz commented 6 years ago

I see. Thanks for clearing that up Jodie!

jodiegardiner commented 6 years ago

As can be seen on the facebook developer console, this is now working. The .png file which had been in place before had become corrupted, so I have replaced the image. I also noticed the preview image for Twitter was missing in the same way and fixed that too.

Screenshot attached:

developer_console

@JemiTheKey @TigranParvanyan