Topic-icon Opengraph error

Active Subscriptions:

None
14 years 5 months ago #17373 by ryaarm
Opengraph error was created by ryaarm
On some pages that I set up OpenGraph on, I'm getting a warning:

Extraneous Property: Objects of this type do not allow properties named og:{jfbcgraph title.


Any idea what that is, and why it would be popping up? Here is the code I inserted into the page:
{JFBCGraph title=Business Files & Artwork | Promotional Tools | The Laughable News} {JFBCGraph description=Use these Promo tools to get the word out about your business.} {JFBCGraph image=http://www.laughablenews.com/images/phocadownload/Business_Files/Promotional_Kits/phocathumbnail-flyer1.png}{JFBCLike show_faces=false}
The topic has been locked.
Support Specialist
14 years 5 months ago #17383 by alzander
Replied by alzander on topic Opengraph error
Ryan,
When I hit your home page, there's a few things I note that aren't quite right:
1) You have something else on your page trying to insert Open Graph tags. While this won't cause errors, it will make it random as to which OG tags are used by Facebook. Just open the HTML of your page and search for "og:", and you'll see 2 blocks of the tags.
2) Within the JFBConnect block of tags (the 2nd block), one of the tags looks like:
<meta property="og:{jfbcgraph title" content="General Dental | Small Ad | The Laughable News} {JFBCGraph description=Use these small ad templates for Dentists in your community.  I'm sure they'll love it!} {JFBCGraph image=http://www.laughablenews.com/category/7-dental-dentistry-dentures.html}"/>
That's definitely not right. It could be because we're not parsing something properly (a bug) or because there's something you've added incorrectly to the tag itself which is causing it to come out all wonky.

Can you try changing the (it looks like title) tag and just try removing the pipe's | and possibly the & sign to see if that makes things look better? If so, let us know, and we can let you know how to get around those issues.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17386 by ryaarm
Replied by ryaarm on topic Opengraph error
Hello Alex,

Yes, I see the extra og. That definitely is not right.
I removed the pipes | and & symbols from the title on this page: www.laughablenews.com/promotional-tools-flyers.html

I still get the error message.

I thought it might be sh404sef...maybe I missed turning off a setting. Open Graph seemed to be off. Just to check, I turned it on for all pages, and checked the home page. I then had 3 instances of the open graph code. Turned it off..back to 2. So, it isn't that.

I cannot think of any other extension/component I have that would be adding open graph.

Are you saying it might be on your end?
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17388 by ryaarm
Replied by ryaarm on topic Opengraph error
Well, it is not JFBConnect. I turned off open graph in JFBConnect, cleared cache, and viewed the page source. Your instance of open graph was gone, leaving just the one at the top of the page. The hunt continues...

In case it matters here is the code at the top of the page:
<base href="http://www.laughablenews.com/" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />
  <meta name="og:title" content="What is The Laughable News?" />
  <meta name="og:type" content="article" />
  <meta name="og:image" content="http://www.laughablenews.com/images/stories/article_images/tln.png" />
  <meta name="og:url" content="http://www.laughablenews.com/" />
  <meta name="og:site_name" content="The Laughable News" />
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17390 by ryaarm
Replied by ryaarm on topic Opengraph error
Ok, problem is partially solved...

Apparently, I didn't look closely enough at my plugins. There was a plugin for PhocaDownload that I must have installed and enabled a long time ago. Completely forgot about it. I'm not sure why they even offer the plugin, as it doesn't seem worth while at all. Anyway, after I disabled it, we're back to just one instance of open graph on the home page.

However, I'm still getting the error: Extraneous Property: Objects of this type do not allow properties named og:{jfbcgraph title.
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17391 by ryaarm
Replied by ryaarm on topic Opengraph error
So, back to the code that is inserted by JFBConnect:
<meta property="og:title" content="What is The Laughable News?"/>
<meta property="og:description" content="The Laughable News is your source for everything needed to start a Community Newsletter business. Our goal is to make your business successful while saving you time and money."/>
<meta property="og:image" content="http://laughablenews.com/images/stories/article_images/tln.png"/>
<meta property="og:image" content="http://laughablenews.com/images/stories/article_images/wizard.png"/>
<meta property="og:image" content="http://laughablenews.com/images/stories/article_images/piggy_bank.png"/>
<meta property="og:{jfbcgraph title" content="The Laughable News | Start A Community Newsletter In Your City} {JFBCGraph description=The Laughable News is your source for everything needed to start a Community Newsletter business. Our content is always family-friendly so you can feel comfortable distributing it anywhere.} {JFBCGraph image=http://www.laughablenews.com/images/stories/article_images/tln.png}"/>
<meta property="og:url" content="http://www.laughablenews.com/"/>
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="130390100399654"/>

Why is there an og:title at the top and then "og:{jfbcgraph title" in the middle? Is that an issue on your side?
The topic has been locked.
Support Specialist
14 years 5 months ago #17396 by alzander
Replied by alzander on topic Opengraph error
Glad you found the culprit of most of the Open Graph tags.

I'm not sure why the title tag is there twice and why the second time it's messed up. We'll have to test with the tags you supplied at the top and see if we can recreate the problem. We'll let you know what we find. If you change them, or narrow anything down, just let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17455 by ryaarm
Replied by ryaarm on topic Opengraph error
Hey alex,

After a little more messing around, I discovered that it is caused by the code I entered in the "defaults" area. I copied everything directly from your site, and substituted my info. So, I'm pretty sure the code is right. But, just to be sure, here it is:
{JFBCGraph title=The Laughable News | Start A Community Newsletter In Your City} {JFBCGraph description=The Laughable News is your source for everything needed to start a Community Newsletter business. Our content is always family-friendly so you can feel comfortable distributing it anywhere.}{JFBCGraph image=http://www.laughablenews.com/images/stories/article_images/tln.png}

As I was testing, I tried removing the Title code, as that was the original, ongoing, culprit with the facebook debugger. Then facebook debugger had a problem with the description...So, I tried erasing all the code in the default area, and the facebook debugger was happy as a clam. No more errors.

I looked the pages on my site, and I see that they no longer have that extra "default" code. So, it seems that the extension is inserting the defaults, even when there is existing open graph code on the page.
The topic has been locked.
Support Specialist
14 years 5 months ago #17461 by alzander
Replied by alzander on topic Opengraph error
You're correct, the defaults should only be used if there's no {JFBCGraph} tag for that field already on the page. If you add defaults again, let us know exactly what you put in the defaults box so we can test with those values. It's possible we just parse them wrong with certain characters, or an outright bug.

Either way, we'll test on our own and let you know what we find.

Thanks for the report!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18212 by ryaarm
Replied by ryaarm on topic Opengraph error
Hey Alex,

Just following up on this. I thought 4.1.1 might fix it, but it is still there. I cannot add any defaults, or I get the errors again. Did you have any luck troubleshooting it?
The topic has been locked.