Of course, I would like to avoid permanent saving of files since they are always different and it would get too crowded very quickly

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

Paste it to a PHP file that echos it out:

    <meta property='og:image' content='decoder.php?data=<!-- base64 data -->'/>


        echo base64_decode($_GET['data']);

Make sure you check source for security reasons.

Solution 2

Open Graph needs an URL.

You could try saving your base64 as a temp image.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply