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.

Facebook seam to disable the functon to post via Mails on the Wall. In reason of that, this Extension is not more able to post something via mail on facebook :(

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
 * separate 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

1.0 beta build 2014082420140824

 * fix description in Extension List in Special:Version
 * BUG: if the edit contains a picture, it will not found at the current save are solved
 * The $wgMail2Facebook['blacklist'] is not more needed, instead have you put the Files in Category "Mail_2_Facebook_blacklist"
 * New settings to control the Thumbnail quality $wgMail2Facebook['imgquality']
 * Configure if you want the pucture from the article, allways the same picture or some from a list. (the last booth points are recommend if you have pictures in the wiki that are under licenses)

Future versions

 * Priority A
 * Set white background by transparent layers (https://www.facebook.com/photo.php?fbid=208069022579816&set=a.176997432353642.51474.118231428230243&type=1&theater)


 * Priority B
 * Check it with other image structures




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

Download instructions
You can download it from here: http://download.schuff.eu/

Installation
1. copy the downloaded files to the extension folder

2. add the following to LocalSettings.php:

3. Create catiegorys "Mail_2_Facebook_blacklist" and "Mail_2_Facebook_usable" on your MediaWiki instace.