Topic-icon OG Image & Description tag troubles

Active Subscriptions:

None
11 years 1 month ago #31660 by lishig
Having confusion on og image tags and descriptions.

Set a global image tag. That works. Started applying individual tags on articles. They show in debugger. Problem is I'm having a third image read by FB and it is placed in the first position priority defeating the purpose of the individual article image tag. This third image happens to be the first image within the article.

Also debugger pulls the first words of article over the meta description.
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31663 by lishig
Unpublished Open Graph plugins and that corrected it. Too bad, was looking forward to using them.
The topic has been locked.
Support Specialist
11 years 1 month ago #31667 by alzander
Lisa,
You shouldn't need to unpublish the Open Graph plugin. The plugins *should* respect any {SCOpenGraph image=xyz} tags and place them as the first priority tag over any others that are set. It should be: tags, automatic images, defaults.

If that's not the case, we'd need to know what plugin it was that you disabled that 'fixed' the issue. If it was the content plugin, you also can create an 'object' for the categories or your site that you want to apply special settings from. One of those settings is choosing whether to use the meta description or the actual article text for the Open Graph description. By default (when no object has been created), the content plugin will use the first 10 words of the article as the description.

Hope that helps explain what should happen. Let us know more about what is happening and posting a URL where we can see the actual HTML and the og:image tags would help a lot too.

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

None
11 years 1 month ago #31670 by lishig
Have the ''send'' and ''like'' buttons pulling up correct og images now. One wrinkle left~ when I manually copy/paste a link to FB it will only call up the globally declared image. Any thoughts?
Thanks,
Lisa
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31671 by lishig
Me too on my ''fix'', don't like it. Was very excited to use those features. Disabled the ''content'' and ''custom object'' plugins.
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31672 by lishig
I'll turn the plugins back on. Try to recreate the issue and post a link. Thanks Alex. :)
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31674 by lishig
link: www.diggersdelight.com/index.php/dig-in/art-gifts/garden-gifts

with content plug in turned on the problem occurs.

File Attachment:


turned off it's correct.
File Attachment:


Manual copy/paste share method has problems regardless.
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31675 by lishig

alzander wrote: you also can create an 'object' for the categories or your site that you want to apply special settings from. One of those settings is choosing whether to use the meta description or the actual article text for the Open Graph description.


I've got it set to "Meta" under Description Type within Object Settings. Below I left "20" in the Description Length because I thought if I had it set to "Meta" it would ignore that value. Should I delete "20" out of Description Length?
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31687 by lishig
I've worked on this all afternoon and am stuck and frustrated. The only way to keep that ''first image'' in the article from claiming priority is to turn off content plug in and at that point it renders the cool open graphic feature useless. If I have something configured incorrectly I'm at a loss to find it. I'm guessing my object/actions are messed up, but really don't know at this point. I have had success posting to the timeline, just a bust with the og image. I did get the meta descriptions to present correctly.

These article all have tags, but do not work either when manually copy/pasting the link to FB or when the og content plugin is triggered.
www.diggersdelight.com/index.php/dig-in/art-gifts/garden-gifts
www.diggersdelight.com/index.php/dig-in/seasonal/winter
www.diggersdelight.com/index.php/dig-in/art-gifts/garden-gifts

Hope you can help. Sorry if I'm taking too much of your time. Just really confused at this point.
The topic has been locked.
Support Specialist
11 years 1 month ago #31689 by alzander
Lisa,
First off, you can't take too much of our time. We're here to help our users, and support is something we take very seriously. So, feel free to ask anything and be persistent. There may be times when it takes hours to get a response, but that's just our schedule.

For the description setting selection of "Meta Data", the character/word count setting shouldn't matter. When set to meta the full meta description should be set as your og:description tag. On your example articles, I am seeing that behavior. If you're not, let us know.

Finally, for the og:image, we've been doing a bit of testing today. There is definitely a bug in the ordering of insertion when you have all of {SCOpenGraph }, automatic, and default tags. Fixing them all will take some effort, and we'll be investigating the best way to do so. If you're ok with not using a default tag for now, then there's a code change which should fix things right up for you. If interested, edit the /libraries/sourcecoast/openGraph.php file. Around line 211, you'll see:
function addValue($value, $isFinal)
    {
        $this->value[] = $this->getCleanValue($value);
        $this->isFinal = $isFinal;
    }
Change that to:
function addValue($value, $isFinal)
    {
        if (is_array($this->value))
            array_unshift($this->value, $this->getCleanValue($value));
        else
            $this->value[] = $this->getCleanValue($value);
        $this->isFinal = $isFinal;
    }
Test that out and let us know how it goes. Again, we will look into a way to make sure the ordering is right for all 3, but I won't have an answer immediately.

Thanks for your patience,
Alex
The topic has been locked.