LSFLK/MedicinesforLK

Change the image displayed with the shared link to the thumbnail image of the aid package

Closed this issue · 5 comments

Is your feature request related to a problem? Please describe.
Change the image displayed with the shared link to the thumbnail image of the aid package. (Suggestion by @akbandara)

Describe the solution you'd like
Use React Helmet to change the meta tag to use the aidpackage thumbnail as the img.
https://www.digitalocean.com/community/tutorials/react-react-helmet
https://ogp.me/

This might not work for Client rendered React. Might have to use a Server-side framework like Next.JS to get it to load images from remote locations (currently package images are loaded from file-sharing links such as dropbox).

@nipunsampath were you able to try this out?

This 'Sharing Debugger' from the Meta Developer site could also help us figure out what's going on: https://developers.facebook.com/tools/debug/

Closing this since we will not be using something like NextJS for supporting this kind of requirement.