=== Facebook Fan Box Cache === Contributors: dilbert4life, electriceasel Tags: facebook, cache, iframe Requires at least: 3.0 Tested up to: 3.0.4 Stable tag: 1.2 Are you tired of using FBML or an iframe to load in your Facebook Fan Box / Like Box? Me too. So I wrote this plugin that takes care of the issue. == Description == ** 1.1 and 1.2 are important bug fix releases. Please update asap if your website is hosted on a Windows server or if you have a custom Facebook page name. ** This plugin was written to take care of a serious issue. We were getting horrible load times on any page that contained the Facebook Fan Box iframe code. Especially during the evenings when everyone else in the world AND their mother was on Facebook playing Farmville and asking ME to join them. I wanted nothing of it, and I didn't want my website to suffer the consequences. So after some research, I wrote up this plugin. Now, you have got to give credit where credit is due, so I must say that this plugin is a WordPress adaptation / implementation of code inspired from my reading of [this post by Aaron Saray.](http://aaronsaray.com/blog/2010/04/27/load-facebook-fanbox-faster-by-caching-it/ "Aaron Saray"). It isn't cut and paste, but this code is based off of his code. Check the post on this plugin over at our site, [Electric Easel](http://www.electriceasel.com/plugins/wordpress/plugin-facebook-fan-box-cache "Facebook Fan Box Cache"), for instructions, updates, and other news. Features: * Reduce page load time on pages that would normally contain your iframe or FBML code * Shortcode for embedding into a page * FB Cache Widget (Default 240px wide) * Manual Cache Refresh A few notes about this plugin: * This does not cache images locally. It only caches the generated HTML of the initial frame cURL call. Images are still pulled from Facebook. (see To Do) * This plugin requires PHP5 and cURL to be enabled on your server. == Installation == 1. Go to WordPress Dashboard 2. Click "Plugins" 3. Click "Add New" 4. Type "Facebook Fan Box Cache" in the input box. 5. Click "Search" 6. Click "Install" on the plugin that is by Don Gilbert & ElectricEasel (if you want this one) == Screenshots == 1. The plugin's admin screen 2. Widget options 3. Using the shortcode == Frequently Asked Questions == = Does this plugin cost anything? = No. That's why it's hosted here. And because we're awesome. = What about foo bar? = What about it? == Changelog == = 1.2 = Bugfix: Windows doesn't have a /tmp/ directory, and would throw an error every time the fanpage was requested. Moved temporary cache file to `dirname(__FILE__).'/cache/fanbox.tmp.html'`. Thanks @[Altino Gomes](http://www.apg.org.br/2010/ "Altino Gomes") = 1.1 = Bugfix: Regex for finding page url wasn't working on pages that didn't contain `/pages/` in the url. Updated the regex and now it works fine. Thanks @[Aaron Prill](http://hungarband.com/ "HungarBand") = 1.0 = OUT OF BETA!!! (Thanks to those who commented, and suggested changes!) Added manual cache refresh. Optimized codebase and added faster expiration/error checking. = 0.3b = Added option to allow custom width (defaults to 240px) Added "Disable inline CSS" to widget options Added custom expiration / cache renewal times. = 0.2b = Patched security hole where web user could view contents of cache directory. Files added: `cache/index.php` = 0.1b = Initial release. Please [let me know](http://www.electriceasel.com/contact/ "Electric Easel Chicago Web Design") if you find any issues. == To Do == = Easy = 1. Utilize WP_Http instead of strictly cURL = Hard = 1. Enable Caching of images = Considering = 1. Utilizing [cSprites](http://www.mummey.org/csprites/ "cSprites") on cached images