How to exclude the Open Graph Protocol tags ?

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Dec 20, 2011 10:41 am
Hi,

When I look to the source code of my pages I see all the meta tags from OGP like <meta property="og:type"...>

I try to exclude all my categories from the social API template parameters but the tags still here.

What can I do ?

Ryo
User avatar
Senior Boarder

GK User
Tue Dec 20, 2011 10:46 am
Hi,

Just try disabling all Facebook plugins in your site!
User avatar
Platinum Boarder

GK User
Tue Dec 20, 2011 12:01 pm
Hi,

Thanks for answer, you was right, my Facebook authentification plugin was enabled, so I disable it.

Here appears a problem I was unable to connect to my back end administration!!!

I was force to go to phpMyAdmin to check and my Joomla authentification was disabled.... So I put 1 as a value and everything is ok now, I can connect !!!

But the tags still here !!!!

JD
User avatar
Senior Boarder

GK User
Tue Dec 20, 2011 12:05 pm
Hi,

If you change your default template, does it still happen? If possible you can PM me your backend and FTP access then I can check further to advise you better.

Thanks,
User avatar
Platinum Boarder

GK User
Tue Dec 20, 2011 2:49 pm
Sorry I can't give you access, I test with an another template and there is no tags :shock:

JD
User avatar
Senior Boarder

GK User
Tue Dec 20, 2011 3:19 pm
What is the template you are using?
User avatar
Platinum Boarder

GK User
Tue Dec 20, 2011 3:23 pm
I'm using myfolio:)
User avatar
Senior Boarder

GK User
Tue Dec 20, 2011 3:28 pm
I tested with my installation but didn't see the same issue. I really need to check your site otherwise I can't help you further.

Thanks,
User avatar
Platinum Boarder

GK User
Tue Dec 20, 2011 3:55 pm
that's really weird I have me too a "basic" myfolio installation on local environment and I've just made the test with the same problem, even if the Facebook authentification plugin is disabled!
User avatar
Senior Boarder

GK User
Wed Dec 21, 2011 8:39 am
I have no idea, check my screenshot please
User avatar
Platinum Boarder

GK User
Wed Dec 21, 2011 11:26 am
hi,

Is the screenshot from home page ?

Because for the home page, the tags are not present, but if you go to the typography page for example the tags are present.

JD
User avatar
Senior Boarder

GK User
Thu Dec 22, 2011 10:16 am
Oh you should tell me that sooner :) I found the solution now.

- Open file: \templates\gk_myfolio\html\com_content\article\default.php

- Find this code:
Code: Select all
$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 );

- Comment it out:
Code: Select all
/*
$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 );
*/
User avatar
Platinum Boarder

GK User
Thu Dec 22, 2011 12:22 pm
Hi,

Thanks for your help ;)

Don't you think it could be more easy if we have an option to disable this, in the template parameter for example ?

Maybe you can discuss about this with the GK developper.

Ryo
User avatar
Senior Boarder

GK User
Thu Dec 22, 2011 12:28 pm
But this is helpful for most sites. Because you wanted to get rid of that so I tried to find a solution for you, but I really don't know why you need to do that, as if those tags present in the code, they don't reflect to your site display but help Facebook to get right content for sharing feature.

BTW, you are most welcome :)
User avatar
Platinum Boarder


cron