{"id":45015,"date":"2010-12-01T06:30:04","date_gmt":"2010-12-01T06:30:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fan-count\/"},"modified":"2010-12-06T22:21:05","modified_gmt":"2010-12-06T22:21:05","slug":"fan-count","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fan-count\/","author":370384,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"1.2","tested":"3.0.5","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Fan Count","header_author":"Derek Herman","header_description":"","assets_banners_color":"","last_updated":"2010-12-06 22:21:05","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_xclick&business=accounts@valendesigns.com&item_name=Fan+Count","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/fan-count\/","header_author_uri":"http:\/\/valendesigns.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2261,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.2":"<ul>\n<li>A change to the Graph API broke v1.1<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,442,157,28679],"plugin_category":[56],"plugin_contributors":[78127],"plugin_business_model":[],"class_list":["post-45015","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-count","plugin_tags-facebook","plugin_tags-fan","plugin_category-social-and-sharing","plugin_contributors-valendesigns","plugin_committers-valendesigns"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fan-count.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Returns a database stored Facebook Fan Count in plain text or number format. Reduces the Facebook Graph API calls by only updating the fan count hourly and serving a database cached result in between. The account you're attempting to get a \"Fan Count\" from must be a page you can become a fan of. Regular account ID's for non-fan pages will return a zero result.<\/p>\n\n<p>You can use the function <code>&lt;?php fan_count( $id, $default, $echo, $format ); ?&gt;<\/code> in your theme files. The following is an explanation of the parameters the function excepts.<\/p>\n\n<ul>\n<li>@param array $ids an array of Facebook IDs<\/li>\n<li>@param int $default your fallback fan count during a zero result: default 0<\/li>\n<li>@param bool $echo return or echo: default true (echo)<\/li>\n<li>@param bool $format return as plain integer or number formatted: default true (number format)<\/li>\n<\/ul>\n\n<p>For example, if I was Psdtuts+ and wanted to echo out a fan count that had a fallback or default fan count in the unlikely event nothing is stored in the database or there is a weird zero result returned, I would do the follow.\n    <\/p>\n\n<p>If I wanted to save the count to a variable as a plain integer that I could add to another count or something similar I would do this.\n    <\/p>\n\n<p>If I wanted to echo a formatted count form an array of $ids with a fallback, I would do this.\n    <\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>fan-count<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does this plugin require any certain PHP functions?<\/dt>\n<dd><p>Yes! Your server must have <code>json_decode()<\/code> available or the plugin will fail to work properly. Basically, you server needs to be running PHP 5.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>A change to the Graph API required a slight variable modification<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added the ability to pass in an array of feed IDs<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Returns your Facebook Fan Count (now likes). Reduces the Facebook Graph API calls by updating hourly and serving a database cached result in between.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45015","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=45015"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/valendesigns"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45015"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45015"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45015"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45015"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45015"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}