Hi,
Im tring to implement the facebook meta tag for product page like:
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="" />
on _Root.Head.cshtml i put this:
@if (IsSectionDefined("AddToHead"))
{
@RenderSection("AddToHead", required: false).ToHtmlString();
}
on _ProductBox.cshtml i put this:
@section AddToHead{
<meta property="og:title" content="@Model.Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="@Model.URL" />
<meta property="og:image" content="@Model.FBImage" />
<meta property="og:site_name" content="" />
}
but doesnt work. the meta tags doesn´t appear. Is there a way to resolve this?
Thanks