Open Graph Tags

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 26, 2013 9:06 pm
Reply with quote
Report this post
I'm having issues with Facebook not reading the Open Graph tags correctly when pages from my site are shared. It only recently started when I updated the site to use the Game News template. The previous version worked fine. This is what the page's source code shows up as on mine and other browsers for the article http://www.therepubliq.com/entertainmen ... miserables:

Code: Select all
<meta name="title" content="Les Misérables" />
<meta name="author" content="Dax Dobbs" />
<meta name="og:url" content="http://www.therepubliq.com/entertainment/film/global/item/731-les-miserables" />
<meta name="og:title" content="Les Misérables - therepubliq.com" />
<meta name="og:type" content="Article" />
<meta name="og:image" content="http://www.therepubliq.com/media/k2/items/cache/e1ef6b1511175103949b82a229ea0710_S.jpg" />
<meta name="image" content="http://www.therepubliq.com/media/k2/items/cache/e1ef6b1511175103949b82a229ea0710_S.jpg" />
<meta name="og:description" content="Dax braved the holiday crowds to get a gander at the highly anticipated film adaptation of the Broadway classic, Les Misérables to see what all the hu..." />


but when I check the Facebook Object Debugger this is all the scaper sees:

Code: Select all
<meta name="og:url" content="http://www.therepubliq.com/entertainment/film/global">
<meta name="og:title" content="Global - therepubliq.com">
<meta name="og:type" content="Article">


I'm just at a loss as to why Facebook would complete disregard the tags. Any insight or direction would be helpful.
User avatar
Fresh Boarder

teitbite
Sun Jan 27, 2013 10:40 am
Reply with quote
Report this post
Hi

I think You should ask fb developers what can be wrong here. Becuase all parameters are in <head></head> section and everything looks to be correct. I think that fb requiremants must have changed, but I cannot see any article about that.
User avatar
Moderator

GK User
Mon Feb 11, 2013 12:13 am
Reply with quote
Report this post
According to FB developers the issue seems to be on the site and not on their end. Other sites are also having trouble with the OG tags as well. StumbledUpon, Reddit, LinkedIn all show the same incomplete info as Facebook. The only thing that has changed is the template. It worked fine with other templates. It only started having issues with this particular one.

teitbite wrote:Hi

I think You should ask fb developers what can be wrong here. Becuase all parameters are in <head></head> section and everything looks to be correct. I think that fb requiremants must have changed, but I cannot see any article about that.
User avatar
Fresh Boarder

teitbite
Mon Feb 11, 2013 7:29 pm
Reply with quote
Report this post
Hi

Yes, that's why I've asked to consult wih FB developers so they tell what's missing :)
Ok. Send me an access to joomla panel. I'll see og plugin configuration and ftp access so I'll add what I think is missing.
User avatar
Moderator

GK User
Tue Feb 12, 2013 8:21 am
Reply with quote
Report this post
SENT. Thanks in advance for any help you can offer. :D

teitbite wrote:Hi

Yes, that's why I've asked to consult wih FB developers so they tell what's missing :)
Ok. Send me an access to joomla panel. I'll see og plugin configuration and ftp access so I'll add what I think is missing.
User avatar
Fresh Boarder

teitbite
Tue Feb 12, 2013 3:09 pm
Reply with quote
Report this post
Hi

Ok. The only meta missing was og:author. So I have added it by editing /html/com_k2/templates/default/item.php and added this code:

Code: Select all
<?php
   $document=& JFactory::getDocument();
   $document->setMetadata('og:author', $this->item->author->name);
?>


All date is set properly, so I believe it can be some kind of conflict with one of the plugins You have installed. You have planty of them here :)

Please check and let me know.
User avatar
Moderator

GK User
Tue Feb 12, 2013 9:02 pm
Reply with quote
Report this post
That was one of the first things I checked. I disabled all the plug-ins that were added after the installation and still haven't been able to get it to work. From what I can tell, when Facebook scrapes the site it ignores the template and GK Open Graph Plugin and uses the OG info called for from public_html/components/com_k2/views/item/view.html.php. The author tag you added shows up on the source code through a browser but still doesn't show up on the FB scraper.

teitbite wrote:Hi

Ok. The only meta missing was og:author. So I have added it by editing /html/com_k2/templates/default/item.php and added this code:

Code: Select all
<?php
   $document=& JFactory::getDocument();
   $document->setMetadata('og:author', $this->item->author->name);
?>


All date is set properly, so I believe it can be some kind of conflict with one of the plugins You have installed. You have planty of them here :)

Please check and let me know.
User avatar
Fresh Boarder

teitbite
Wed Feb 13, 2013 4:30 pm
Reply with quote
Report this post
Hi

Ok. Knowing this I can suspect problem is comming from K2 override in template. This is the onl logica explanation. Please rename /html/com_k2 to /html/_com_k2 and check if this makes a difference.
User avatar
Moderator


cron