|
if you guys want to make your component Facebook ready. here is what you do.
in components\com_ttvideo\views\video\view.html.php file after line 67 add the following code.
$document->addCustomTag('<meta property="og:title" content="' .$this->video->title. '" />'); $document->addCustomTag('<meta property="og:description" content="'.strip_tags($this->video->full_description).'" />'); //$document->addCustomTag('<meta property="og:url" content="'.JURI::root().'"/>'); $document->addCustomTag('<meta property="og:image" content="'.$this->video->thumbnail.'"/>'); $document->addCustomTag('<meta property="og:site_name" content="'.$mainframe->getCfg('sitename').'"/>'); $document->addCustomTag('<meta property="fb:admins" content="182887995103678"/>'); $document->addCustomTag('<meta property="og:type" content="video" />'); $siteisID = $this->video->site; if($siteisID == 'vimeo') { $document->addCustomTag('<meta property="og:video" content="http://vimeo.com/moogaloop.swf?clip_id='.$this->video->video_id.'&server=vimeo.com&show_title=1&show_byline=1&show_portrait=1&color=00ADEF&fullscreen=1&autoplay=0&loop=0" />'); } else { $document->addCustomTag('<meta property="og:video" content="http://www.youtube.com/v/'. $this->video->video_id .'?fs=1&hl=en_GB&" />'); } $document->addCustomTag('<meta property="og:type" content="movie"/>'); $document->addCustomTag('<meta property="og:video:height" content="360" />'); $document->addCustomTag('<meta property="og:video:width" content="640" />'); $document->addCustomTag('<meta property="og:video:type" content="application/x-shockwave-flash" />');
what this will do is enable your video to be directly embedded onto someones wall when user presses like button on your site's page. not just a link to your page. |