I have an image thumbnail, encoded as base64, that I want to use as the default thumbnail when sharing a page via Facebook. Facebook does not seem to support using the base64 image directly so I need to render/save/decode(?) it first before the user can click the "share" button. Any thoughts?
Here's my thumbnail:
$thumbnail = '<img src="data:image/jpg;base64,' . $thumbnail_src . '" />';
Obviously it renders fine in the browser but Facebook can't "get it."
Try looking at the GD Library first. And then create a php page that will render the image with the correct header so Facebook will see this as an image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With