OK, this extract works for 1.20
function JidanniOpenGraphMetaPageHook($out,$sk){global $wgLogo;
$out-addHeadItem(meta:property:og:image,
Html::element('meta',array('property'='og:image','content'=wfExpandUrl($wgLogo))).\n);return
true;}
$wgHooks['BeforePageDisplay'][] =
OK, meta property=og:image content=$wgLogo /
is what I need to add to the header of each page, as my site has no
images at all except for the logo. I use the latest git version of MediaWiki.
In OutputPage.php we see
function addMeta( $name, $val ) {
array_push(
I believe this should help you:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/OpenGraphMeta/OpenGraphMeta.php?view=markup#l61
Personally I'd just install the extension though.. you may find you
want the other things too :)
Jon
On Tue, Jun 19, 2012 at 1:40 PM, jida...@jidanni.org
But both my page and the Wikipedia page both have only the site logo, and
'powered by' footer icons.
How does Facebook know not to mistakenly show a 'powered by' icon for Wikipedia
but not my site?
Unfair!
___
Wikitech-l mailing list
It's because the site logo is added via a background image and the
only image it finds in that image next to the text page is the
powered by MediaWiki. It would show the site logi if the logo was
changed to an image tag instead. Alternatively a meta tag such as
meta property=og:image
Here Facebook grabs the Mediawiki logo instead of the site logo.
http://www.facebook.com/groups/tg.taiwan/permalink/374509135949001/?comment_id=374537129279535offset=0total_comments=1
Doing the same experiment with e.g.,
http://en.wikipedia.org/wiki/1st_clan_chief ,
a page also without any user
On Mon, Jun 4, 2012 at 7:35 PM, jida...@jidanni.org wrote:
Here Facebook grabs the Mediawiki logo instead of the site logo.
http://www.facebook.com/groups/tg.taiwan/permalink/374509135949001/?comment_id=374537129279535offset=0total_comments=1
Doing the same experiment with e.g.,
Yeah I remember that.
On Jun 4, 2012 7:45 PM, Chad innocentkil...@gmail.com wrote:
On Mon, Jun 4, 2012 at 7:35 PM, jida...@jidanni.org wrote:
Here Facebook grabs the Mediawiki logo instead of the site logo.