I have a page for job in my joomla and I want to add some tags to the header of this page, using controller but I never used joomla I don't know how
the tags are:
<meta property="og:title" content="link_title">
<meta property="og:url" content="page_url">
<meta property="og:description" content="page_description">
My controller is in
/home/ly/web/site/http/components/com_mks_career/controller.php
and my view is
/home/ly/web/site/http/templates/kms/html/com_mks_career/job/default.php
I found this code but I don't know where to call it and how to use it
$this->document->setMetaData( 'og:image', JURI::base().'imagename.jpg');
$this->document->setMetaData( 'og:title' , $pagetitle );
$this->document->setMetaData( 'og:description' , $item->metadesc );
$this->document->setMetaData( 'og:url' , JURI::base().$_SERVER ['REQUEST_URI'] );
$this->document->setMetaData( 'og:site_name' , $this->conf->get('config.sitename'));
$this->document->setMetaData( 'og:type' , 'cat:type' );