Extension:Mail2Facebook

What can this extension do?
If would a article save, the extension send a mail to the facebook page

0.2 beta build 20110614

 * Post additional Username
 * Add picture to post
 * show Username in post

0.3 beta build 20110623

 * hide the IP, if the author not login in MediaWiki
 * pictures from Artikeles with blanks may upload, too
 * Better link in Special:Version
 * switch for configure with/without username
 * switch between real or username
 * Post only Articles, not other type of MediaWikiPages
 * Better text for imagelicense

0.4 beta build 20110729

 * support SVG images (it will sent as png to Facebook)
 * reports only Namespace 0 Articles (0 = Standard)
 * send a random picture from the article

0.5 beta build 20110731

 * New Parameter $wgMail2Facebook['devmail']
 * Send a copy of the mail to facebook with detailed information to Mailadress out $wgMail2Facebook['devmail']
 * signs like äüö will displayed correct
 * only try to send follow filetypes: .png, .jpg, .jpeg, .gif and .svg
 * with $wgMail2Facebook['lessminold'] you may set, how many time since the last edit of the article must left, to send a new mail to facebook
 * you may set with $wgMail2Facebook['reduce'] = array('x' => 97, 'y' => 68); if you want send a smaller one image.
 * all image will sent as Jpeg to Facebook
 * you may change the JPG Quality with $wgMail2Facebook['imgquality'];

0.6 beta build 20110830

 * calculate with true color
 * $wgMail2Facebook['reduce'] is replace by $wgMail2Facebook['picturesize']. $wgMail2Facebook['picturesize'] is the pixel width and height auf the sent image
 * images will not strech or compress the image dimensions like this.
 * the mail didn't cintains image information, is non image in the article
 * the size of 120 pixel is recommed for the FB Wall. The Mail2facebook extension ignore the local cache thumbs in 100px size, to use bigger one
 * Blacklist: $wgMail2Facebook['blacklist'] = array('examble.svg','test.gif');

further versions

 * Prio A
 * BUG: if the edit contains a picture, it will not found at the current save
 * Set white background by transparent layers (https://www.facebook.com/photo.php?fbid=208069022579816&set=a.176997432353642.51474.118231428230243&type=1&theater)


 * Prio B
 * Check it with other image structures
 * fix the prob, that facebook put more post in one
 * posttext configurable over Spezial:MediaWiki-Systemnachrichten
 * Use Mediawiki internal function to query the DB


 * Prio C
 * Form to choose which image to post

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
see comments above