That's slightly complicated, since the Opengraph data generation is done at an early stage of rendering the page where a lot of stuff hasn't been processed.

It's not impossible, but it is not that easy. At least if it's done correctly.