Wrong title and picture when posting on Facebook

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Sun Jul 01, 2012 6:39 pm
Hi
I installed the template just a week or so ago and all works just fine.
I have one problem though. It seems the open graph tags are not filled properly.
An article's title (K2 item mostly actually) is not used in the title tag, but the category title in stead. Also a random picture is selected and not the item's main picture.
My site is : www.12points.tv
Can anybody have a look or give some hints?

Regards,
Louis
User avatar
Junior Boarder

teitbite
Sun Jul 01, 2012 7:10 pm
Hi

That's because our open graph works with regular joomla content and not K2 yet. Please try to find a different plugin which supports K2.

Please search forum too. I'm pretty sure I've posted a code to extend our module support, but I do not remember threads name.
User avatar
Moderator

GK User
Sun Jul 01, 2012 8:09 pm
Thanks for your quick reply.
I have been taking a look at plugins but I'm not really interested in altering go parameters for every single k2 item i am writing. Shouldn't a (K2-) article posted on Facebook automatically get the article title and image? I have built sites with gavick templates before and never had this problem, I used K2 then as wel.

Regards,
Louis

teitbite wrote:Hi

That's because our open graph works with regular joomla content and not K2 yet. Please try to find a different plugin which supports K2.

Please search forum too. I'm pretty sure I've posted a code to extend our module support, but I do not remember threads name.
User avatar
Junior Boarder

teitbite
Mon Jul 02, 2012 12:46 pm
Hi

I guess it should, but facebook must have change parsers for websites, because image recognision is worst with their every update.

Please look for my fix for that on the forum. I've made it to use a main K2 item image as an open graph image value.
User avatar
Moderator

GK User
Tue Jul 03, 2012 9:12 pm
But it is mainly the title that bothers me, it takes the navigation page title, rather than the actual article's title...
Look at this one for instance:
http://12points.tv/esc-news/ooh-aah-jus ... 7th-heaven
User avatar
Junior Boarder

teitbite
Wed Jul 04, 2012 11:55 am
Hi

Yes because it's exaacly as it's coded

Code: Select all
<meta content="12points.tv Ooh Aah" property="og:title">


You can try to overwrite it with this code:

Code: Select all
<meta content="<?php echo $this->item->title; ?>" property="og:title">
User avatar
Moderator

GK User
Thu Jul 05, 2012 1:33 pm
Thank you!
Could you please tell me where to change this?
User avatar
Junior Boarder

teitbite
Thu Jul 05, 2012 7:07 pm
Hi

Please try in /layouts/blocks/head.php
User avatar
Moderator


cron