× Joomla Facebook Connect support forum

Topic-icon Double Quotation Marks Truncate OG Description

Active Subscriptions:

None
12 years 2 months ago #18745 by mikcro
Looked everywhere for a solution to this (I apologize if I missed it) but I noticed that when I "Like" an article that the OG Description truncates everything after a double quote in the meta data (which is typical of coding).
Updated the component to make sure it wasn't already included in the fix but it still seems to be appearing.
Any thoughts on what I need to adjust to correct for this?
You can view this article's meta data for an example: www.freesportspress.com/ncaa/football/86...ing-day-preview.html
The topic has been locked.
Support Specialist
12 years 2 months ago #18752 by alzander
Mike,
Looks like you found a bug. We should be stripping the double-quote and replacing it with a single-quote. We see where that -should- be happening, but it's not.

We'll let you know what we find.

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

None
12 years 2 months ago #18753 by mikcro
Always happy to help. I'll try and watch to make sure a lot of quotations aren't used in the first portions of my articles until this is resolved. Let me know if you have any code you need tested. Thanks, again, for such amazing customer service!
The topic has been locked.
Support Specialist
12 years 2 months ago #18756 by mel
Mike,

I found the mistake in our code.. We attempt to strip the quote when we pull the og:description out of an existing metadescription, but I forgot to add it for other situations like this.

The following is a fix that should resolve your issue. Please try it out and let us know if you're still having problems. In plugins/system/jfbcsystem.php, around line 1477, please replace this block
            if (strpos($headerGraphString, $graphName) === false || $graphName == 'og:image')
                return '<meta property="' . $graphName . '" content="' . $graphValue . '"/>' . $carriageReturn;

with this one
            if (strpos($headerGraphString, $graphName) === false || $graphName == 'og:image')
            {
                $graphValue = str_replace('"', "'", $graphValue);
                return '<meta property="' . $graphName . '" content="' . $graphValue . '"/>' . $carriageReturn;
            }

Sorry again!
-Melissa
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #18764 by mikcro
Melissa,

That corrected the issue. Thank you both very much! (and yes, I have given your site and this extension lots of love on the JED in the past so you don't even have to ask me to do that one lol)
The topic has been locked.
Support Specialist
12 years 2 months ago #18768 by alzander
Melissa?!? What about me!! :D

No problem for the support.. it's what we're here for.

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #18770 by mikcro
lol and you too, Alex...didn't mean to forget all the help you provide as well. =)
The topic has been locked.