Posted by Dave Reid on September 13, 2011 at 7:29pm
30 followers
| Project: | Metatag |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
We're currently missing support for some OpenGraph meta tags, and others like robots. We need to ensure those are supported prior to 1.0 release.
Missing or incomplete meta tags
- #1281104: Support the Robots meta tag
- #1498760: Add new meta tag: Expires
- #1498762: Add new meta tag: Rating
- #1498764: Add new meta tag: Revisit-After
- #1491616: Add new meta tag: Dublin Core
- #1472412: Add new meta tag: Abstract
- #1278132: Support POWDER meta tags
- #1365840: Update Open Graph tags, e.g. Image not working with Facebook Like Button
- #1900434: Improve support for Open Graph meta tags (video & location & contact)
- Any search engine specific meta or verification tags
- Geo tags
Missing Open Graph meta tags
fb:app_id
og:latitude
og:longitude
og:street-address
og:locality
og:region
og:postal-code
og:country-name
og:email
og:phone_number
og:fax_number
og:points
og:video
og:video:width
og:video:height
og:video:type
og:audio
og:audio:title
og:audio:artist
og:audio:album
og:audio:type
Resources
- http://en.wikipedia.org/wiki/Meta_element
- http://www.google.com/support/webmasters/bin/answer.py?answer=79812
- http://developers.facebook.com/docs/opengraph/
- http://en.wikipedia.org/wiki/Dublin_Core
- http://en.wikipedia.org/wiki/Geotagging#HTML_pages
- http://wiki.whatwg.org/wiki/MetaExtensions - official WHAT-WT WIKI page.
- http://www.metatags.org/ - commercial site with lots of information about meta tags.
Comments
#1
Shouldn't site verification tags be left to other modules like Site Verify?
#2
Probably. I'm trying to re-investigate this as this to see if this is something that can be done "easier" in Metatags now.
#3
Definitely looking for Dublin core from this module. From Nodewords - http://drupal.org/project/issues/nodewords?text=dublin&status=All
#4
Just a quick note to say that's great that Facebook opengraph tags are being supported by Metatag... very cool! :-)
--Ben
#5
don't forget about fb:admins in this list - https://developers.facebook.com/docs/opengraph I believe
#6
I'm thinking about this problem specifically in relation to metatag_opengraph module; until all the tags are available, it just can't be a viable option for everyone.
The main problem I see is that supporting all those tags will make things complicated for most users, because there will be a lot of "extra" tags available. For the auto opengraph module, I addressed this by putting the "advanced" tags into a separate fieldset, but of course I'm expecting a better interface for Metatag, and I'd like to help with it. I have two ideas:
Theoretically, a combination of these two ideas could also work for the other tag sets, such as dublin core, etc.: a submodule could provide basic tags out of the box, and site administrators could customize for their own sites.
I'd be happy to code the first option and provide a patch if it seems like an idea worth trying.
#7
Dublin Core would be awesome!
#8
Looking at how Nodewords implements Dublin Core, seems like it's mostly in nodewords.api.php within these two functions:
hook_metatags_info()
hook_metatags_output_alter()
This is just from grepping around in it, but could be that this isn't so difficult to implement within Meta Tags.
#9
Could I also add og:locale to this list. The facebook URL linter is saying...
Warnings that should be fixed
Inferred Property The og:locale property should be explicitly provided, even if a value can be inferred from other tags.
#10
What about noydir ?
I think we could use ;
<meta name="robots" content="noodp, noydir" />Instead of Open Directory Project only ?
<meta name="robots" content="noodp" />#11
I have another project that needs Dublin Core integration. Can I take the OpenGraph submodule to base an Dublin Core submodule on?
#12
I added a ticket for the Abstract META tag. http://drupal.org/node/1472412
#13
As a heads up, we're almost finished with writing a Dublin Core submodule. This code will be released soon.
#14
That's great news. Thanks @BarisW!
#15
@BarisW:
Thanks for the heads up.
I was just this minute going to write that and luckily saw your comment.
Not being pushy but do you have a rough definition of "soon", eg. today / this week / next month?
Just due to deadlines it would be good to know if I should do my own for my own purposes anyway.
On the other hand if you want a tester you're welcome to send me your code :)
#16
Let's say within a week. We're almost done building it, but we want to tweak it a little bit more.
@mgifford: would you like to have a separate project or will it be added as separate module to this project?
#17
I think it would be fine to have this as a sub-module within this project.
#18
@BarisW: I'd like to include it in this module, thank you.
#19
@rooby: see http://drupal.org/node/1491616#comment-5796980
#20
I have the need to set ROBOTS to NOINDEX,NOFOLLOW as the site is in beta and should not crawled at all.
#21
All of these: http://www.w3schools.com/tags/att_meta_name.asp
#22
Related issue for Nodewords/D6: #1568178: Update list of tags
#23
Is a full option list of all meta tags already available? Thanks.
#24
I've been cataloging all supported meta tags on a wiki page: http://groups.drupal.org/node/229413
#25
According to the wiki page above:
og:video:url
og:video:height
og:video:width
og:video:type
Are supported.
Although, I have 7.x-1.x-dev installed and cannot see these tags available.
I have these tags added in a "hacked" version of the module, I'd be happy to roll this into a patch.
#26
@emergencyofstate: The wiki page says those fields are available for Nodewords, not Metatag. Sorry.
#27
@DamienMcKenna
Ok. I'm still confused because the wiki says:
"The following is a list of the officially supported meta tags for Nodewords (D6) and Meta tags (D7)"
Anyway, do you have an estimation or timeline for adding the og:video stuff to meta tags? Like I said, I'd be happy to provide a patch
#28
@emergencyofstate: the table shows which meta tags are supported in which module. There is a lot of parity, but we're not 100% there yet.
I'm not sure when I'll get to improving the OG support, but I'm always grateful for any patches people write :) Thanks.
#29
I've updated the wiki to note that Metatag now supports the Twitter Cards meta tags.
#30
Here's a patch w/ og:video tags added.
#31
The patch in #30 works for me.
Many users of Facebook use SSL-only. Some video services have different URL structures for HTTP and HTTPS links, so I've added og:video:secure_url
#32
Please move the patch for new OpenGraph meta tags to a new issue so this [meta] issue isn't taken over with actual code :)
#33
See #1900434: Improve support for Open Graph meta tags (video & location & contact)