hi
thanks for the help so far
I believe the problem is not directly with the facebook link but with the configuration of Open Graph
I removed the information from the File Open Graph / html / com_content / article / default.php and installed the plugin "Phoca Open Graph Plugin".
The problem was partially solved. The photos, the link and the page title is correct but in many cases the information that are shown are not the article but the "home" site.
You know how corrir programming without using the Open Graph plugin from "Phoca"? I found the same problem in another template from Gavick I'm using.
I'm putting the piece of programming that removed the file. Do not know if removed properly.
// OpenGraph support
$template_config = new JConfig();
$uri = JURI::getInstance();
$article_attribs = json_decode($this->item->attribs, true);
$og_title = $this->escape($this->item->title);
$og_type = 'article';
$og_url = $cur_url;
if (version_compare( JVERSION, '1.8', 'ge' ) && isset($images->image_fulltext) and !empty($images->image_fulltext)) {
$og_image = $uri->root() . htmlspecialchars($images->image_fulltext);
$pin_image = $uri->root() . htmlspecialchars($images->image_fulltext);
} else {
$og_image = '';
preg_match('/src="([^"]*)"/', $this->item->text, $matches);
if(isset($matches[0])) {
$pin_image = $uri->root() . substr($matches[0], 5,-1);
}
}
$og_site_name = $template_config->sitename;
$og_desc = '';
if(isset($article_attribs['og:title'])) {
$og_title = ($article_attribs['og:title'] == '') ? $this->escape($this->item->title) : $this->escape($article_attribs['og:title']);
$og_type = $this->escape($article_attribs['og:type']);
$og_url = $cur_url;
$og_image = ($article_attribs['og:image'] == '') ? $og_image : $uri->root() . $article_attribs['og:image'];
$og_site_name = ($article_attribs['og:site_name'] == '') ? $template_config->sitename : $this->escape($article_attribs['og:site_name']);
$og_desc = $this->escape($article_attribs['og:description']);
}
$doc = JFactory::getDocument();
$doc->setMetaData( 'og:title', $og_title );
$doc->setMetaData( 'og:type', $og_type );
$doc->setMetaData( 'og:url', $og_url );
$doc->setMetaData( 'og:image', $og_image );
$doc->setMetaData( 'og:site_name', $og_site_name );
$doc->setMetaData( 'og:description', $og_desc );