Topic-icon How to Force JFBConnect to Grab K2 Item Title

Active Subscriptions:

None
When I create an Open Graph object called Article which is the default Facebook type article, the only option for selecting what I want to be og:title is the Category for the particular K2 item. I don't want the Category title to be used for the og:title, I want the item/article title to be used for the og:title. What do I have to do to accomplish that?
The topic has been locked.
Support Specialist
9 years 4 months ago #49831 by mel
When you create a K2 Object Type of Item and then select the Category, this means that JFBConnect will figure out the correct Open Graph tags for any K2 items within that category. That being said, our K2 Open Graph plugin isn't actually setting the og:title on the page. For title, JFBConnect is using the value from the current page's HTML title tag, which K2 sets for items and categories.

I hope this clarifies our behavior, but let me know if you need any help.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago - 9 years 4 months ago #49863 by webdevtim
Thanks Melissa, but that isn't what is happening. When I create a test account on Facebook and I use that test account to test the tags in an article ( I Am the Face of Truth ) I get the K2 Category title instead of the article title in the post for the test Facebook account.



The Object type is Article which is the Facebook default type article and the category for that object is "Latest News" which has the title ":Latest News". The action is "Recommend" which is a custom action I created on Facebook, and which works except for the problem with the title. The K2 title for this article is: "I Am the Face of Truth." The only place "9/11 Truth Outreach News," as seen in the image above, appears on the website is in the Newsletter created by ACYMailing, the title of the Newsletter is "9/11 Truth Outreach Newsletter." I can't find anywhere else on the site where that is used. But you say JFBConnect ignores the og:title meta tag in the head section of the page and instead uses the K2 title for the item as long as the item is of the Category (Latest News in this instance) that was selected in the options for the Object ("Article"). But again that is not happening.

Could it be that ACYMailing and JFBConnect are interfering with each other?
Last edit: 9 years 4 months ago by webdevtim.
The topic has been locked.
Support Specialist
9 years 4 months ago #49884 by alzander
The problem was that you had set a default Title tag in the Open Graph -> Configuration area. Those values are used as fallbacks in case a more specific tag is specified by an {SCOpenGraph title=..} tag on the page or a better tag generated by an Open Graph plugin. Our K2 plugin doesn't set the title, it just always uses the current page title.. which means that JFBConnect will assume you'd prefer the Default tag you provided to be used instead.

I removed that tag from the Default area and title is not being set properly. It may take a few days for Facebook to see the changes.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #49935 by webdevtim
So the rest of the defaults, image, site_name, description, don't conflict with specific tags? Online the "title=" tag gets applied universally when included in the defaults list?
The topic has been locked.
Support Specialist
9 years 3 months ago #49939 by alzander
The defaults are what are used when no more specific tag has been set on the site. It's a way to override our automatic 'fallback' tags that are applied on every page. For title, we always fallback to whatever the page's meta title is. For some Open Graph plugins though, we will explicitly set a 'better' title for the page because we may know something more about the extension (like forum discussion topic) and use that instead of the meta title. For K2 though, since that extension always sets the meta title to the article title, which is a great Open Graph title as well, our Open Graph plugin doesn't set a title.... we let JFBConnect use the automatic meta title. In that case, if you have a default tag set, it means that the default would be used instead as you saw in your case.

image, site_name, description

Image can always have a default because that tag is allowed multiple times on a page. In fact, we recommend having a default as JFBConnect will ensure it's the last image tag set, which means Facebook gives it the lowest priority. That's great for a logo or other 'ok' image for any page of your site.
site_name is great to have a default as well. No Open Graph plugins set this, so the default is what should always be used
description can be set with a default, but generally, it's probably best to let JFBConnect take the meta description for the page and use that as it's likely more relevant than a generic 'default' description that applies to your site, but maybe not the specific page being viewed.

Whew! I hope that helps explain, but if you need anything else, just let us know!

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

None
9 years 3 months ago #49940 by webdevtim
Thanks for the explanation Alex. This must make writing documentation pretty difficult, because there are so many exceptions depending on the Joomla components installed like K2, EasyBlog, JomSocial, Community Builder, etc.

Thanks again for the explanation, I will not set a default title for K2 sites going forward. FaceBook hasn't gotten around to reviewing the changes yet. Would imagine that it might be after the 1st of the year before they do.

I am getting a lot questions from the people paying for this site who believe that adding Social Media tags to a site should be as easy as downloading the widgets fr4om Facebook and twitter and adding them to a page.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #49950 by webdevtim
Now I am getting this:

1 mary.chaisen Recommend Article Error /557-news-releases/407-music-matters.html Invalid parameter 2014-12-27 23:15:47
2 mary.chaisen Recommend Article Error /557-news-releases/409-torture-intentionally-amplified-the-false-storyline-of-9-11.html Invalid parameter 2014-12-27 23:13:34
3 mary.chaisen Recommend Article Error /557-news-releases/409-torture-intentionally-amplified-the-false-storyline-of-9-11.html Invalid parameter 2014-12-27 23:09:48

Is this because Facebook is in the process of reviewing the app?
The topic has been locked.
Support Specialist
9 years 3 months ago #49960 by alzander

Thanks for the explanation Alex. This must make writing documentation pretty difficult, because there are so many exceptions depending on the Joomla components installed like K2, EasyBlog, JomSocial, Community Builder, etc.

Documentation is always difficult because everything on the social network's side is usually in flux. For the K2 title issue, we have an issue in our tracker to set that properly in the next release to the item title so that the OG Default won't be used. However, we still wouldn't recommend setting an og:title default since that's really something that JFBConnect can generally guess better than have a generic default site-wide value.

Now I am getting this:
...
Is this because Facebook is in the process of reviewing the app?

On that page, the Open Graph 'type' is set to:
<meta property="og:type" content="truth-on-the-move:article"/>
It seems like you've un-checked the "Built-In Open Graph Object" setting in the K2 object configuration. If you're using an 'article' type, that box should be checked.

As always, you can run your pages through the Facebook Open Graph Debug Tool, below, to immediately test any changes you make. Use the "Fetch new scrape information" so that it's not showing it's cached results.

The benefit of that tool is that it automatically updates Facebook's cached values instead of having to wait days for them to re-scan that page. You may not be able to do that with all of your pages, but can manually update a few key pages (and be confident that the rest should work when the automated re-scan happens as well).

I hope that helps, but if you need anything else, just let us know.

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

None
9 years 3 months ago #49985 by webdevtim
Thanks Alex, that solved that problem and the Facebook "Recommend" Action I created looks really great now, as does the Facebook Like and Google+ actions for the "Content Plugin - K2 Like" plugin. But when testing the twitter button in the "Content Plugin - K2 Like" ensemble, twitter displays the site image instead of the K2 Item image for the page even though the twitter meta tag indicates the correct image.
<meta name="twitter:image" content="https://www.911truthoutreach.org/media/k2/items/cache/64f7b8990be2d94add5152c155ac4915_XL.jpg"/>
<meta property="og:image" content="https://www.911truthoutreach.org/media/k2/items/cache/64f7b8990be2d94add5152c155ac4915_XL.jpg"/>
<meta property="og:image" content="https://www.911truthoutreach.org/images/site/template/facebook-911to-logo.jpg"/>
The Facebook Like action causes the correct image to be displayed on the users timeline for Likes, but on the twitter "What's Happening" center section, the site logo is displayed instead. Is there some way I can remedy this, or should I use individual tags for each page? I am hoping that I can use the site wide "Content Plugin - K2 Like" plugin, as that means a lot less work and maintenance for me.

Another thing for twitter, I am trying to keep the character count down so I have created an alias for www.911truthoutreach.org of 911to.org.

I am using the Joomla redirect manager to re-direct requests to something like www.911truthoutreach.org/Ca-Deals-w-911/, to www.911truthoutreach.org/557-news-releas...vidence-of-9-11.html. This results in the URL: 911to.org/Ca-Deals-w-911/ being redirected to: www.911truthoutreach.org/557-news-releas...vidence-of-9-11.html (this actually is working), saving a lot of characters that can be better used for description.

Is there a way in JFBConnect to change the base URL to 911to.org/ and is there a way that I can manually set the page reference to the shorter name, which will then be reconstructed when someone clicks on that link on the Social Media pages though our DNS server and the Joomla Redirect Manager?
The topic has been locked.