i have a problem with og tags. i added on my template index a string like
<meta property="og:image" content="http://www.example.com/facebook.jpg" />
to fix an image for the site when shared on facebook because otherwise strange images where chosen by facebook. But this conflicts with all my blog articles pages when shared on facebook. And the og tag image override the blog image when my article is shared. I need help to set the og tags in the template index.php to work only for my homepage.
They suggested me something like
if($currentPage == 'home' || $currentPage == 'article'){
codeSampleToAddSocialShare()
}
but i really can't make it my myself, i don't know where to put the code and if it's correct or just an example. Thanks for your help