automatically generate opengraph and twitter metadata