Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-24 Thread jidanni
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'][] =

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-19 Thread jidanni
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(

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-19 Thread Jon Robson
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

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-06 Thread jidanni
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

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-05 Thread Jon Robson
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

[Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-04 Thread jidanni
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

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-04 Thread Chad
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.,

Re: [Wikitech-l] Facebook grabs the Mediawiki logo instead of the site logo

2012-06-04 Thread John Du Hart
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.