{"id":33338,"date":"2014-12-10T16:01:42","date_gmt":"2014-12-10T16:01:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/tyme-social-count\/"},"modified":"2015-02-11T17:13:11","modified_gmt":"2015-02-11T17:13:11","slug":"tyme-social-count","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/tyme-social-count\/","author":14168394,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"4.1.42","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Tyme Social Counter","header_author":"Tyler Bailey","header_description":"","assets_banners_color":"","last_updated":"2015-02-11 17:13:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/tylerb.me","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1237,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.2":"<p>Added cURL request to update Facebook Open Graph scraper<\/p>","1.1":"<p>Removed <code>tyme_activation()<\/code> function<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Tyme Social Count returns a simple number for you to style and customize as you see fit.","2":"Easily customizable and styled to fit your specific theme and\/or design."}},"plugin_section":[],"plugin_tags":[1556,157,5283,150,313,325,28617,6487,312,167,174,2039,171,159],"plugin_category":[51,56],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-33338","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-facebook","plugin_tags-fb","plugin_tags-google","plugin_tags-linkedin","plugin_tags-network","plugin_tags-og","plugin_tags-open-graph","plugin_tags-pinterest","plugin_tags-shares","plugin_tags-social","plugin_tags-social-count","plugin_tags-social-networks","plugin_tags-twitter","plugin_category-multisite","plugin_category-social-and-sharing","plugin_committers-tyb"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/tyme-social-count.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin will query the popular social network APIs and retrieve the number of shares\/likes\/plusones from each. All shares are added up and calculated together to give you the total number of shares. All that is returned is a simple number. This number represents the number of shares, likes, tweets, +1's, and pins.<\/p>\n <p>The plugin can be utilized two ways, the first method is the AJAX route which will require you to add a little javascript to your template. This method is the preferred method if you are requesting the share count for multiple posts on one page load. For example on an archive page. Below is a quick example of how that is done:<\/p>\n <pre><code>jQuery.get(ajaxurl, { action: \"get_total_shares\", url: \"&lt;?php the_permalink(); ?&gt;\" }).done(function(data) {     var shareNum = parseInt(data); \/\/ your total number of shares }); <\/code><\/pre>\n <p><strong>Note:<\/strong> You can call this AJAX anyway you wish, but you <strong>must<\/strong> pass <code>the_permalink();<\/code> as the <code>url<\/code> parameter and <code>\"get_total_shares\"<\/code> for the <code>action<\/code> parameter.<\/p>\n <p>If you are just displaying the share count for one post at a time, you may use the plugin shortcode to return the number. That shortcode is <code>[tyme_share_count]<\/code><\/p>\n <p>This plugin also refreshes the Facebook Open Graph scraper each time a post is published. This ensures the proper images and content are being served to Facebook when shared.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the 'tyme-social-count' directory to your '\/plugins\/'<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You can use the plugin by using the shortcode <code>[tyme_share_count]<\/code> or by following the AJAX method mentioned in the README. AJAX is the preferred route to prevent slow page load times<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n <ul>\n<li>Added cURL request to update Facebook Open Graph scraper on post publish<\/li>\n<\/ul>\n <h4>1.1<\/h4>\n <ul>\n<li>Bug fixes<\/li>\n<\/ul>\n <h4>1.0<\/h4>\n <ul>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"Calls popular social network APIs and returns a total share\/like\/+1\/tweet\/pin count from Facebook, Twitter, LinkedIn, Google Plus and Pinterest.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33338","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=33338"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tyb"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33338"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33338"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33338"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33338"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33338"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}