Hi there. There are lots of meta tags that are not covered. For example, I'd love to see the ability to enter custom types (http://developers.facebook.com/docs/opengraph Object types).

Also, custom tags would be interesting, like the fb:admins of fb:app_id, but I'm not sure this is the appropriate module.

Comments

g.k’s picture

+1 for other meta tags including location information

drupalam’s picture

The problem was with the facebook cache. It started working later in the day.

Terko’s picture

ameshkin, did you tried Linter? http://developers.facebook.com/tools/lint/?url=http://5175440.kathy.hort...
It seems, that you don't have any description and title.

hiddentao’s picture

Assigned: Unassigned » hiddentao
hiddentao’s picture

I've added the ability to configure the Location and Contact tags (as specified on http://opengraphprotocol.org). You can now configure these tags on a node-by-node basis. Next step is to add options to the admin screen to configure values for them globally across all nodes.

Latest code is available in the Development release.

hiddentao’s picture

Latest code now gives you the ability to set global defaults for the new location and contact tags from the Open Graph Meta tags admin settings page.

hiddentao’s picture

New release 6.x-1.4 created (may take a few hours to show up on the module page). Please give it a whirl and let me know if the new tags work.

tomass_zutis’s picture

Issue tags: +og:url, +fb:admins, +fb:app_id, +og:image

Great little module - just checked the latest version and it works great. Here are a couple more ideas re new tags:

- og:url -> a little surprised this one was missing :O)
- fb:admins and fb:app_id as Globals from Admin
- og:image -> needs an override on per node bases

I think the above are general enough to apply to most cases.

udvranto’s picture

Subscribing

g.k’s picture

@hiddentao, I tested the new release and it does have location tags but requires to enter it manually. It would be great if it can map lat/lon from the node location or use tokens instead.

ball.in.th’s picture

+1 for requests in #8

Störtebeker’s picture

My "Likes" don't show any of my edited og:xx meta tags on Facebook walls. Only the most basic info it accessed before any og: tags were inserted are shown on the wall.

Is it possible that after the recent open graph changes at FB the missing (now) required meta tags break the whole procedure ("see FB required properties from "http://developers.facebook.com/docs/opengraph/#extra-data"):

"...
The Open Graph protocol defines four required properties:

* og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
* og:type - The type of your object, e.g., "movie". See the complete list of supported types.
* og:image - An image URL which should represent your object within the graph. The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1. We support PNG, JPEG and GIF formats. You may include multiple og:image tags to associate multiple images with your page.
* og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., http://www.imdb.com/title/tt0117500/.

In addition, we've extended the basic meta data to add two required fields to connect your webpage with Facebook:

* og:site_name - A human-readable name for your site, e.g., "IMDb".
* fb:admins or fb:app_id - A comma-separated list of either Facebook user IDs or a Facebook Platform application ID that administers this page. It is valid to include both fb:admins and fb:app_id on your page.

It's also recommended that you include the following property as well as these multi-part properties.

* og:description - A one to two sentence description of your page.

..."

Since og:url and fb:admins or fb:app_id seems to be required now by FB, the use of this (very nice!) module seems to be harmed in the given state.

So as mentioned in post #8 it would be great to add the required og: meta tags (or add generic form fields to be added individually so we all can chase FB's permanent changes ourselves :-)

Thanks.

hiddentao’s picture

@Störtebeker

People have requested adding the fb: tags before but if we add them to this module then we're overlapping with what the Drupal Facebook module (http://drupal.org/project/fb) provides. I'd recommend using that module to add your Facebook app id as a meta tag.

title, type, image tags are already supported. You can set the 'type' per content type or on a node-by-node basis. The 'title' is taken to be the same as the node's title but this can also be overridden per node. The 'image' tag only gets output if you have an image either attached to the node via a field or if you have images in your node's body content. There is already an issue (#1006888) for defining a global fallback image for nodes which don't have their own - that probably needs to be higher priority now.

The 'site_name' tag will always get output and its value be configured in the OG meta tags settings page.

That leaves the 'url' tag which needs adding to the system.

hiddentao’s picture

Priority: Normal » Major
hiddentao’s picture

og:url has been added in the latest dev branches.

Störtebeker’s picture

@hiddentao: thanks for the reply & info.

"..I'd recommend using that module to add your Facebook app id as a meta tag."

Correct (I use fb module already extensively). I just thought that only to make the "Like" experience a bit more vivid on FB walls it seems to me a lot of "overhead" to add a new app in FB each time I just add a new story to my Drupal website that people can "Like". With my unique & static fb:admin (= my FB UserID) I'd assumed that I can add this without registering a new app on FB each time "a new story is told" on my website.
Is that correct?

"Unfortunately" this leaves it indeed up to "...the 'url' tag which needs adding to the system." and probably the user ID tag

(I already played around in your module but my "adapted code" would probably not work at all..., so I leave it to the people who knows what they are doing:-) (at least I can help testing)
Thx a lot.

Störtebeker’s picture

to insert my FB User ID as a "fb:admins" Meta-Tag I added in file opengraph_meta.common (in latest .dev branch)

line 16 (class OpenGraphMeta)

const ADMINS = 'admins';

but get stuck what to put in here

...
$ret[self::ADMINS] = ???);

(defined before in this piece here:)
private function get_og_tag_defaults($node = NULL, $full_view = FALSE) {
// defaults
static $defaults = array();
if (empty($defaults)) {
$defaults = array(
self::TITLE => '',
self::DESCRIPTION => '',
self::IMAGE => '',
self::TYPE => '',
self::URL => '',
self::ADMINS => '',
);
}

in opengraphmeta_module

I simply added

OpenGraphMeta::ADMINS => array(
'#title' => t('Admins'),
'#type' => 'textfield',
'#maxlength' => 255,
'#default_value' => !empty($node->opengraph_meta) ? $node->opengraph_meta[OpenGraphMeta::ADMINS] : '',
'#description' => t('The FB User-ID as Admin of the node.'),
),

Everthing works but my User ID won't be saved and if no empty rule is defined, it crashes.

FB Linter gives me an error that I have not specified a correct ID in the "fb:admins" Meta-Tag. Source code also shows it for my page but I added the "empty code" of the title tag to make it work which doesn't make sense... :-)

Thx

hiddentao’s picture

@Störtebeker

I'm still not keen on adding fb meta tags to this module as it would make it specialized for Facebook (and OG is meant to be an open standard). It would also then be impossible to remove this tag in future if we wanted to clean the module up. According to Facebook's tag requirements (http://developers.facebook.com/docs/opengraph/) you need an fb:admins meta tag in your page. Why not just put it directly into your template header file and be done with it?

As for adding it to the module, you also need to add your new class constant to the array in the get_og_optional_tag_defaults function so that it knows to save its value to the database. Not sure why FB Linter is giving you an error.

hiddentao’s picture

Status: Active » Needs review

Just to note, the latest release contains the og:url tag. Everyone please give this a go and let me know.

hiddentao’s picture

Assigned: hiddentao » Unassigned
Störtebeker’s picture

@hiddentao

great, I agree not to include FB specific tags in an otherwise open standard.

But with your hint my FB-Admin ID is now saved to the DB and everthing works incl. Image, Description and URL (used your latest .dev branch).

You specified all other fields in opengraph_meta.common.inc but unfortunately I have no idea what and how to specifiy something here as well for "my" FB ADMIN tag (marked below as "?????"):

$ret[self::ADMINS] = !empty($?????) ? array($?????) : '';

Any idea?

Thx and happy easter!

2ndChanceTech’s picture

Issue tags: +og:audio, +og:video

Not sure if this is the right thread for this, but I would be very interested in og:audio and og:video to allow media sharing. Using the url from a filefield would be ideal. I'd be willing to sponsor this if the price is right.

el_reverend’s picture

The idea of adding Facebook specific tags to this module is two fold. The most used Social Network is Facebook and most likely it's the only OpenGraph service a lot of people are using. However, I do believe that this is not in the interest of this module but a good solution might be a sub-module (or several)? Thoughts?

hiddentao’s picture

@Störtebeker that's where you set the default value for your tag, which will get used unless it gets overridden within a node. You could just use $ret[self::ADMINS] = your admin id.

@el_reverend People using the FB module seem to just put the FB tags directly into their page.tpl.php. See http://drupal.org/node/804112#comment-3857658 for instructions.

Störtebeker’s picture

@hiddentao:
thx! I ended up with hardcoding my fb:admins ID as you suggested in the page.tpl.php. When my customers will ask for a more individual solution per author I will allow myself to come back to this issue ("You only get what you pay for" is often a good show stopper for such requests :-)

un11imig’s picture

I'm not sure if some of you achieve to change the title of a Facebook share using Open Graph meta tags.

Thanks

hiddentao’s picture

Status: Needs review » Fixed

Sounds like this is done for now.

Status: Fixed » Closed (fixed)
Issue tags: -og:url, -fb:admins, -fb:app_id, -og:image, -og:audio, -og:video

Automatically closed -- issue fixed for 2 weeks with no activity.