nihey / breaking-badify

A little Breaking Bad tribute
http://nihey.github.io/breaking-badify/
8 stars 0 forks source link

Facebook post preview image generated. #9

Open BrOrlandi opened 9 years ago

BrOrlandi commented 9 years ago

Would be very nice if the image in the facebook post preview, when sharing the page, shows the message generated with breaking badify. Maybe it's possible, see this question on stackoverflow.

The page must be converted into an image and this image should be in some way set as og:image meta tag. Facebook has this tool to debug post preview.

This is a huge challenge. :wink:

nihey commented 9 years ago

Indeed, it would be a great enhancement, also bearing a great effort in doing so.

nihey commented 9 years ago

This seems to be a great problem for us, we only have a static page here, and it seems Facebook will not execute any JavaScript code from our page (http://stackoverflow.com/a/20969222). To do such thing, we must have a backend structure that takes the URL, generate the image and serves the static html along with the generated image.

Even if we are able to build this backend structure, we'd have to deal with Facebook's cache (http://stackoverflow.com/a/15834959). A cachebuster solution would be possible, but I think it would cause higher latency.