× Joomla Facebook Connect support forum

Topic-icon JFBC OG:TAGS not rendering properly

Active Subscriptions:

None
14 years 3 months ago #19263 by learnthrusong
Hi there,

I have an app that I'm building to socialise my users interactions via facebook.

As a small test, I began by defining an og action, object and their properties in Facebook app like;
Action: enter
Object: project
File Attachment:


Essentially, what I'm trying to do is insert the og meta tags into my music component's 'artist' page whereby the artist is my project... well, for testing purposes at least.
This is the page:
File Attachment:


So, to achieve this, here's what I'm inserting into the html textarea:
{JFBCGraph type=learnthrusong:project}
{JFBCGraph description=A songwriting competition with a difference! Envirovision, now in it's sixth year continues to stimulate interest and participation in environmental advocacy amongst teenagers and wider-communities through songwriting and recording workshops delivered in RCT secondary schools} 
{JFBCGraph image=https://www.learnthrusong.co.uk/templates/rt_iridium_j15/images/style1/logo.png}
{JFBCGraph title=The Envirovision Song Quest RCT, 2011} 
{JFBCGraph url=https://www.learnthrusong.co.uk/client/streetcare-rct/projects-and-albums.html}{JFBCGraph type=learnthrusong:project}

As you can see from the screennshots I've attached (or will attach to subsequent posts), I have the open graph enabled with auto insert first image and description tags set to yes also.

The problem is is that even when these options are NOT ENABLED, it is not overriding the tags with the ones I've set in custom JFBC tags (the ones above)... It still seems to be automatically grabbing the regular meta data from the page. You can see this in the source code images attached... The first is the very opening of the html, second is 190 lines below where the og meta tags are built with JFBC.
File Attachment:


File Attachment:


This results in errors on the facebook debugger (again see screenshot)...
File Attachment:


Please help with this... I'm desperate to get to the bottom of this so that I can then write a php script that will sit in a module and grab the relevant info from the album/project/artist objects and str-replace as it loads.

Many thanks,

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19302 by learnthrusong
Hi,

Something I forgot to mention... In the facebook error message, you'll notice that it says that there are malformed meta tags, i.e. metatags outside of the head tag...

That isn't the case though... Looking at the source (see previous post), the og meta tags are separated from the standard ones by 180 lines of javascript/css declarations etc, but, they are nonetheless, enclosed in the head tag as they should be. As I mentioned in last post, the issue is that the curly braced tokens aren't replacing any suto-generated ones... They simply inherit their standard meta tags from the page which is not what I need.

Please help?

Best wishes,

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19315 by mtk
Hey Gez,
2 things you should check:
  1. Make sure "Open Graph" is enabled in the Open Graph tab of the social configuration area.
  2. Turn off all caching (Global Config and System - Cache plugin)
and check the issue again.

If that doesn't work, disable the JFBCSystem plugin, and see if the raw tags are appearing on the page.

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19326 by learnthrusong
Hi Mati,

Thanks for your response!

1. Yes OG is on and
2. I don't cache anything on the site system or global and I double-checked to be sure!

As for disabling the JFBC Plugin... I just get the standart joomla meta (total of 4 tags).

Very confused here! Please help,

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19332 by mtk

learnthrusong wrote: Hi Mati,

Thanks for your response!

1. Yes OG is on and
2. I don't cache anything on the site system or global and I double-checked to be sure!

As for disabling the JFBC Plugin... I just get the standart joomla meta (total of 4 tags).

Very confused here! Please help,

Gez

I think you have an error now...
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19335 by learnthrusong
What do you mean? What error? Could you explain please?

Thanks,

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19338 by learnthrusong
Sorry,

What I meant was, do you know what the error is specifically or do you j=have a rough idea?

Many thanks,

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19356 by learnthrusong
Right... I fixed it!

Been scratching my head for ages over this then -BOOM! it hit me!

Basically, I've been working on a bunch of custom stuff recently and have been reporting some basic info out to every page. Because it was a 'dirty' & quick fix, I'd placed it in my template index file ahead of the
<head>
. It was therefore causing some confusion/invalidation.

Seems to be working fine now!

Thanks for the awesome extension!

Gez
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19365 by learnthrusong
Hi Alex...

Did you get my PM?

Sorry, I jumped the gun a bit with stating that it was working.

The short version is;
The facebook critical error has gone from the debugger... This was a bit of error reporting I'd temp hacked into template - NOW FIXED
Unfortunately, the plugin doesn't seem to fire on time to render the meta tags inside of the music collection component. I do however know that content plugins do fire from the description fields of all entities such as albums, artists and songs pages for instance.

The problem must be the order in which it is being fired. My issue is, I don't know what's what as far as in what order and where it should be firing in.

Any help would be most welcome!

Many thanks, Gez

Please see PM for more details.
The topic has been locked.
Support Specialist
14 years 3 months ago #19379 by alzander
learnthrusong,
It's generally best if you can post in public (when possible) as there are multiple people who do support. It's what allows us to constantly monitor issues, but if parts of the details are in PM, it makes it more difficult.

The {JFBCGraph ...} tags are all replaced using the JFBCSystem plugin. However, the JFBContent can also place them in the page depending on your settings for "Automatically set description from beginning of article" or "Automatically set image from article". Those settings, right now, have priority over any manually inserted {JFBCGraph ..} tags. So, if you have those settings enabled, they may be likely overwriting your tags. We'd recommend trying to disable the Content plugin entirely right now to see if your tags come through. If so, then you may want to disable some of the Open Graph settings for automation so that your manual tags aren't overwritten.

Let us know if that helps,
Alex
The topic has been locked.