XF 1.5Updating header for specific templates?

Active member

I need to add some custom meta information in these pages (specifically og:image and og:title for Facebook). Unfortunately, I can't insert this stuff into page template because that's all within the <body> tags, and the meta information needs to be in the <header> tags.

This meta information cannot show for other pages that use PAGE_CONTAINER, only these specific ones.

I tried adding the meta information in PAGE_CONTAINER between some conditionals like: