solved Meta Tag Mix-up

Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
In the Forum section, the metatag data is wrong. Instead of taking the description and so on from the forum post, it's taking it from the admin profile.

That's somewhat understandable, since the admin forum was made into the community form. However, it needs to be divorced from the admin profile metatags and have it's own - related to the actual post being shared.

I haven't checked, but Groups will probably have the same issue, since the module was formed from the admin account in much the same way (at least from what I understand).

Does anyone know how to get each network category showing the proper metatags for sharing content? Not just through the ShareThis (where present), but when manually sharing the URL.

In other words, when one shares the URL of a Forum post, a Group (or a page or discussion within the group) a blog, a song, a page, etc., the metadata should relate to that particular URL and it's content, not the OG tags from it's parent profile.

Is that making sense?



--

Ken Rich
indiegospel.net

updated by @ken-rich: 02/16/15 05:15:23AM
brian
@brian
10 years ago
10,148 posts
Yeah that makes sense, and is how it should be working. The ShareThis module does not get any of it's data from the Profile UNLESS it is specifically a ShareThis button that is ON the profile index.

We've not added ShareThis to the forum, so it sounds like you've set that up yourself.

Otherwise if you are on an audio item page, blog page, atc. the Meta Tags for sharing (the open graph tags) will be about the specific item - NOT the profile.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Hi Brian,

What I've done is install AddThis, a similar service as ShareThis, but it's awesome in the sense that it installs itself to EVERY single page on the network, and automatically switches from regular to mobile functionality.

However, it is the same as a manual URL share, in that whatever is present in the source code view is what's being shared.

I've noticed that in the Forum, it's not the item, but the profile description in the source code view, and that's what's being shared.

So, I agree that the metatags SHOULD be about the item, not the profile. However, in practice this is not currently the case, at least not with forum posts.


--

Ken Rich
indiegospel.net
brian
@brian
10 years ago
10,148 posts
How are you adding the OG meta tags in to the forum post? We're not doing that, so you must be doing that custom.

Note that I'm working on adding ShareThis and Tags to forum posts, so that will be properly supported shortly.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Share This is going to need a small update for it to be able to work with the Forum, since the "ID" of the forum post comes in at a slightly different location than the "normal" detail page, so I'm adding a new event listener and will have an update out shortly.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
brian:
How are you adding the OG meta tags in to the forum post? We're not doing that, so you must be doing that custom.

I'm not doing anything to add OG meta tags in the Forum, unless it's these settings in the meta tag manager. Do they look correct?


og:image http://indiegospel.net/logo.jpg site pages
og:title Indie Gospel index.tpl
og:description Indie Gospel is a non-profit Christian social network... site pages
description A non-profit Christian social network...index.tpl
og:title {$item_title} item detail pages
og:image {profile_image} profile pages
og:image {$item_image} item detail pages


The description and image I see in source view (which is scraped on shares) are from my admin profile, not the forum (see below).

og:description" content="
This is the master admin page of Indie Gospel. This network exists to "win souls and feed kids".Please read the FAQ for answers to common questions..." />
<meta property="og:see_also" content="http://indiegospel.net" />
<meta property="og:image" content="https://indiegospel.net/profile/image/profile_image/1/xxlarge" />



--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/06/15 12:08:01PM
brian
@brian
10 years ago
10,148 posts
Yep - I know what you're talking about, not sure why I didn't see it locally but did see it here on Jamroom.net.

I've just pushed an updated version here to Jamroom.net to test it out - if you view source you'll see the updated OG tags here.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
I just viewed source - yes that's more like it. That makes sense to me, as it's about what's actually on the page.


--

Ken Rich
indiegospel.net
brian
@brian
10 years ago
10,148 posts
I just pushed updates to the Profile Forum and ShareThis modules that fixes it up. The new event trigger in ShareThis can now be used to "override" what ShareThis comes up with so we can customize it for each module.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Cool... Thanks Brian...


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
I reopened this one because I just noticed there still seems to be a problem. On blog posts the OG description is not specified. The Facebook scraper gives this warning:
Quote:
Inferred Property: The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.

The problem is, it's grabbing information from the profiles "About You" sign-up question, rather than the actual blogpost.

So the question becomes, how can I use the metatag manager to force it to look in the blogpost itself to scrape a description?

If the metatag manager is not capable of that, what other solution might there be.

+++++++++++++++++++++++++++++++++++++++

As a practical example, here is a blog post from someone who does a blogging ministry on my network. The attached picture shows what it's Facebook share look like - http://indiegospel.net/david-a-mcmillen/blog/3844/the-true-meaning-of-great-love
Blogger.JPG.jpg
Blogger.JPG.jpg  •  54KB




--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/14/15 01:54:06PM
brian
@brian
10 years ago
10,148 posts
Ken_Rich:
If the metatag manager is not capable of that, what other solution might there be.

This is all handled by the ShareThis module, so that is where any "fix" needs to be. I will get an og:description added in for the Blogs.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Awesome - thanks Brian...


--

Ken Rich
indiegospel.net