{"id":11670,"date":"2011-01-05T15:05:29","date_gmt":"2011-01-05T15:05:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/facebook-fan-box-cache\/"},"modified":"2013-02-01T18:19:38","modified_gmt":"2013-02-01T18:19:38","slug":"facebook-fan-box-cache","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/facebook-fan-box-cache\/","author":5328301,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.5","stable_tag":"2.5","tested":"3.4.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Facebook Fanbox Cache Widget","header_author":"Don Gilbert \/ ElectricEasel","header_description":"","assets_banners_color":"","last_updated":"2013-02-01 18:19:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.electriceasel.com\/plugins\/wordpress\/plugin-facebook-fan-box-cache","header_author_uri":"http:\/\/www.electriceasel.com\/team-member\/don-gilbert","rating":0,"author_block_rating":0,"active_installs":20,"downloads":16703,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1b","0.2b","0.3b","1.0","1.1","1.2","1.3.1","1.4","1.4.1","1.5","2.0","2.0.1","2.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573780","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573780","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573780","resolution":"3","location":"plugin"}},"screenshots":{"1":"The plugin's admin screen","2":"Widget options","3":"Using the shortcode"}},"plugin_section":[],"plugin_tags":[146,157,1860],"plugin_category":[52,56],"plugin_contributors":[82969,82970],"plugin_business_model":[],"class_list":["post-11670","plugin","type-plugin","status-closed","hentry","plugin_tags-cache","plugin_tags-facebook","plugin_tags-iframe","plugin_category-performance","plugin_category-social-and-sharing","plugin_contributors-dilbert4life","plugin_contributors-electriceasel","plugin_committers-dilbert4life","plugin_committers-electriceasel"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/facebook-fan-box-cache.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/facebook-fan-box-cache\/trunk\/screenshot-1.png?rev=1573780","caption":"The plugin's admin screen"},{"src":"https:\/\/ps.w.org\/facebook-fan-box-cache\/trunk\/screenshot-2.png?rev=1573780","caption":"Widget options"},{"src":"https:\/\/ps.w.org\/facebook-fan-box-cache\/trunk\/screenshot-3.png?rev=1573780","caption":"Using the shortcode"}],"raw_content":"<!--section=description-->\n<p>** Facebook recently changed their fanbox markup. If you are having problems, please update to the latest version. **<\/p>\n\n<p>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.<\/p>\n\n<p>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 <a href=\"http:\/\/aaronsaray.com\/blog\/2010\/04\/27\/load-facebook-fanbox-faster-by-caching-it\/\" title=\"Aaron Saray\">this post by Aaron Saray.<\/a>. It isn't cut and paste, but this code is based off of his code.<\/p>\n\n<p>Check the post on this plugin over at our site, <a href=\"http:\/\/www.electriceasel.com\/plugins\/wordpress\/plugin-facebook-fan-box-cache\" title=\"Facebook Fan Box Cache\">Electric Easel<\/a>, for instructions, updates, and other news.<\/p>\n\n<p>Features:\n* Reduce page load time on pages that would normally contain your iframe or FBML code\n* Shortcode for embedding into a page\n* FB Cache Widget (Default 240px wide)\n* Manual Cache Refresh<\/p>\n\n<p>A few notes about this plugin:\n*  This does not cache images locally. It only caches the generated HTML of the initial frame cURL call. Images are still pulled from Facebook. (Fixed in v 1.4)\n*  This plugin requires PHP5 and cURL to be enabled on your server.<\/p>\n\n<h3>CSS Guide<\/h3>\n\n<p>If you opt to disable inline CSS, you can paste this into your themes style.css file, and it will give you the default look.<\/p>\n\n<pre><code>.widget_FBCache .fan_box {\n    margin:10px auto;\n    width:240px;\n}\n.widget_FBCache .fan_box_head {\n    border-bottom:1px solid #D8DFEA;\n    padding-bottom:5px;\n}\n.widget_FBCache .connections .total {\n    font-size:12px;\n}\n.widget_FBCache .connections .grid a {\n    float:left;\n    text-align:center;\n    text-decoration:none;\n}\n.widget_FBCache .connections .grid a img {\n    margin:0;\n    padding:5px 5px 0 5px;\n}\n.widget_FBCache .connections .grid a span {\n    color:#808080;\n    font-size:10px;\n}&lt;h3&gt;To Do&lt;\/h3&gt;\n<\/code><\/pre>\n\n<h4>Easy<\/h4>\n\n<ol>\n<li>Utilize WP_Http instead of strictly cURL<\/li>\n<li>Themes (\"Facebook Style\", \"Clean &amp; Crisp\", \"Blank Slate\")<\/li>\n<li>Enable Post Streams<\/li>\n<li>Facebook IDFinder<\/li>\n<li>Translations<\/li>\n<\/ol>\n\n<h4>Considering<\/h4>\n\n<ol>\n<li>Utilizing <a href=\"http:\/\/www.mummey.org\/csprites\/\" title=\"cSprites\">cSprites<\/a> on cached images<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Go to WordPress Dashboard<\/li>\n<li>Click \"Plugins\"<\/li>\n<li>Click \"Add New\"<\/li>\n<li>Type \"Facebook Fan Box Cache\" in the input box.<\/li>\n<li>Click \"Search\"<\/li>\n<li>Click \"Install\" on the plugin that is by Don Gilbert &amp; ElectricEasel (if you want this one)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does this plugin cost anything?<\/dt>\n<dd><p>No. That's why it's hosted here. And because we're awesome.<\/p><\/dd>\n<dt>Where's the CSS Guide?<\/dt>\n<dd><p>On the Other Notes page.<\/p><\/dd>\n<dt>What about foo bar?<\/dt>\n<dd><p>What about it?<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0<\/h4>\n\n<p>CSS template feature added. Might be buggy - loads CSS in the footer ATM<\/p>\n\n<h4>1.5<\/h4>\n\n<p>Not quite 2.0, but does include the CSS guide for those who have been asking for it. Updated for WP 3.1.1<\/p>\n\n<h4>1.4.1<\/h4>\n\n<p>Bugfix: Fixing image links for WP installs outside of the root of the site domain. Thanks @<a href=\"http:\/\/www.atomicdesignstudios.com\/blog\/\" title=\"AtomicDesignStudios\">peteratomic<\/a><\/p>\n\n<h4>1.4<\/h4>\n\n<p>Enhancement: Elimination of all external HTTP requests by caching ALL images as well as HTML output to the local server in the cache\/ folder within the plugin. Increases page load time by .5 sec in our tests.<\/p>\n\n<h4>1.3.2<\/h4>\n\n<p>Not released to public, preparation for v2.0.\nEnhancement: Fan Image Caching!<\/p>\n\n<h4>1.3.1<\/h4>\n\n<p>Bugfix: Facebook updated the way the page is displayed, and people were experiencing a double up on the fans count text. i.e. \"193 people like Electric Easel. people like Electric Easel.\"\nEnhancement: Added PHP version check on activation.<\/p>\n\n<h4>1.3<\/h4>\n\n<p>Enhancement: Added alt tag to facebook fan image.<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Bugfix: Windows doesn't have a \/tmp\/ directory, and would throw an error every time the fanpage was requested. Moved temporary cache file to <code>dirname(__FILE__).'\/cache\/fanbox.tmp.html'<\/code>. Thanks @<a href=\"http:\/\/www.apg.org.br\/2010\/\" title=\"Altino Gomes\">Altino Gomes<\/a><\/p>\n\n<h4>1.1<\/h4>\n\n<p>Bugfix: Regex for finding page url wasn't working on pages that didn't contain <code>\/pages\/<\/code> in the url. Updated the regex and now it works fine. Thanks @<a href=\"http:\/\/hungarband.com\/\" title=\"HungarBand\">Aaron Prill<\/a><\/p>\n\n<h4>1.0<\/h4>\n\n<p>OUT OF BETA!!! (Thanks to those who commented, and suggested changes!)\nAdded manual cache refresh.\nOptimized codebase and added faster expiration\/error checking.<\/p>\n\n<h4>0.3b<\/h4>\n\n<p>Added option to allow custom width (defaults to 240px)\nAdded \"Disable inline CSS\" to widget options\nAdded custom expiration \/ cache renewal times.<\/p>\n\n<h4>0.2b<\/h4>\n\n<p>Patched security hole where web user could view contents of cache directory.\nFiles added: <code>cache\/index.php<\/code><\/p>\n\n<h4>0.1b<\/h4>\n\n<p>Initial release. Please <a href=\"http:\/\/www.electriceasel.com\/contact\/\" title=\"Electric Easel Chicago Web Design\">let me know<\/a> if you find any issues.<\/p>","raw_excerpt":"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.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11670"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dilbert4life"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11670"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11670"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11670"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11670"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11670"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}