OpenGraph tags are justs meta tags as well ;-)
A plugin for that "theme_head" filter is relatively simple, depending on your knowledge. You find a general demo plugin on our Github: https://github.com/zenphoto/demo-plugin
Take that as an example. Instead of the demo functions use something like this:
zp_register_filter('theme_head', 'yourplugin:cript');
class yourplugin {
static function script() {
echo "Your script code here";
}
}
Although I have been in IT since the appearance of the IBM PC XT in the USSR. )) But programming is not my thing, although sometimes I edited the code when there was no other choice. And creating a plugin is beyond me. ) I'll be satisfied for now with the presence of the code on the image page. )