No Share Count or Share Count Not Accurate

MashShare is caching (temporarily storing) the share count and bitly short URLs of a post. With using the default caching method "Async Cache Refresh" the shares and Bitly short URLs are updated on the following time period:

  • New posts: Updated once every hour
  • Posts older than 3 weeks: Updated once every 4 hours
  • Posts older than 2 months: Updated once every 12 hours

If you like to manually reset the cached shares and short URLs you can follow the steps below:

  1. Navigate to the post editor of that particular post.
  2. Press the post update button
  3. Next time the post is loaded, it will update share counts.

Step 1. Purge CDN / Caching

If you haven't already please follow the steps under the link  TRY THIS FIRST Before Troubleshooting

Step 2. Verify share count

Check if there are any shares for your post. You can use the link below for checking. These url contains the same method MashShare is using for aggregating the share count for facebook:

Facebook Share Count

Step 3. Refresh your MashShare Cache

Go to your browser and add the following to the end of your URL: ?mashsb-refresh

So your URL looks like this:

This forces MashShare to fetch and update the latest share numbers instead of the previously cached versions.

Step 4. Check if share count has been refreshed

Now go to your post editor and check if the share counts have been updated. You find the share count data of a single post in the custom field: mashsb_shares

Custom Fields

If the Custom Fields are not visible make them visible from Screen Options button from the upper right corner:


If the updated shares are visible there you just have to make sure that the post is updated on the front page as well.

So if you run a site caching plugin like W3 Total or WP Super Cache purge the cache manually or specify an automatic expiration time which ensures that your site cache is purged after a specified timeframe and the updated share are shown on the frontend

In W3 Total the expiration time is called header expiration time. WP Rocket calls this Clear Cache Lifespan. Other caching plugins will likely use similar names.

Step 5. Is a security setting blocking cache rebuild?

The default caching method Async Cache Refresh uses a small code snippet in your site which tells MashShare to fetch new share counts only after completed page loads. This ensures that your site visitors will never see any slower page load while the share count is aggregated.

This is done by a URL parameter added to the end of the current post URL and is looking like this:

Some security plugins like WordFence block and remove such additional URL parameters. You can test this with adding manually the ?mashsb-refresh parameter to any URL of your site. If the parameter is working fine it remains in the URL of your site. If it gets removed one of the security settings is blocking this parameter.

Fixing this is very simple:

Just navigate to MashShare->Settings->General and switch the Caching Method to Refresh while Loading:


Step 8. When Everything Fails

When you add a Facebook Access Token, in very rare cases your share count still doesn't get updated. However it might work without access token. You can try this situation with the following way;

What you need to do is the visit the URL above. Before visiting replace 2 things;

YOUR_URL_HERE: replace it with your post / page URL. For example

YOUR_ACCESS_TOKEN: replace it with your Facebook Access Token. See How to Create a Facebook Access Token article for more information.

Make sure there are no spaces when you replace these 2 information if there are spaces, you might not get expected results.

After visiting the Facebook API URL with access token, if you don't see any share count information you can visit API URL without Access Token;

Just like the previous URL, replace YOUR_URL_HERE with your post / page URL.

Once done, if you see share count in URL without access token but you don't see it in URL with access token this means you need to remove Access Token from Mashshare's settings.

Once removed Mashshare will start using the URL without access token which you have already tested that returns share count.

Still need help? Contact Us Contact Us