Extension:Mail2Facebook

What can this extension do?
When you save an article, the extension sends an email to the specified Facebook Page Mobile Email address.

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 is not logged into MediaWiki
 * Pictures from Articles with blanks may upload, too
 * Better link in Special:Version
 * Switch for configure with/without username
 * Switch between real name or username
 * Post only Articles, not other type of MediaWiki pages
 * Better text for image license

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 email to Facebook with detailed information to an additional email address using $wgMail2Facebook['devmail']
 * Signs like äüö will be displayed correct
 * Only try to send follow filetypes: .png, .jpg, .jpeg, .gif and .svg
 * With $wgMail2Facebook['lessminold'] you may set how many minutes since the last edit of the article must pass before sending a new email 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 JPEG 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.
 * The mail didn't contain image information, is non image in the article
 * The size of 120 pixel is recommended 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');

0.7 beta build 20111016

 * With $wgMail2Facebook['thumbsizes'] = array(120,150,180,200); the this extension to find the smallest thumb to save time for recalculation the FB Thumb. If you still use Manual:$wgThumbLimits, extension will take this sizes.
 * Use wfGetDB on 1 of 3 db selects
 * seperate code in few small files
 * $wgMail2Facebook['mailfrom'] set the Mailsender. As Example 'THWiki Facebookmail<'.$wgPasswordSender.'>'
 * remove old code that should sent gif or png files.
 * Posttext configurable over Special:AllMessages

0.8 beta build 20111227

 * $wgMail2Facebook['events']['onlynew'] = true; // send only if a new acticle created Extension_talk:Mail2Facebook
 * all DB Querys use the Mediawiki wfGetDB function

0.9 beta build ...

 * fix description in Extension List in Special:Version

Future versions

 * Priority 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)
 * Replace $wgMail2Facebook['blacklist'] with file categorisation


 * Priority B
 * Check it with other image structures
 * Fix the problem that Facebook put more post in one


 * Priority C
 * Form to choose which image to post
 * Send Mail, to inform about new Authors

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:

old ones, that will not use in furter times

 * $wgMail2Facebook['reduce']

Configuration parameters
see comments above