jaredatch / EA-Share-Count

A lean plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
84 stars 13 forks source link

Twitter, Pinterest share counts are 0 on all pages. #64

Closed goldenis closed 8 years ago

goldenis commented 8 years ago

Hi @jaredatch http://blog.paleohacks.com/coconut-flour-pancakes/ the twitter, pinterest share counts are 0 on all pages. on previous versions, it works well though. Can you check why?

Thanks.

jaredatch commented 8 years ago

Twitter count was killed off some months ago by Twitter. That hasn't functioned since then. For this, we added the setting where 0 counts can be omitted, that way it doesn't show a fat zero.

We have a previous ticket that contains some possible unofficial 3rd party work arounds, but none of those have been implemented yet, see https://github.com/jaredatch/EA-Share-Count/issues/39

Pinterest should definitely be working though. @billerickson has it working on one of his large clients. Can you confirm the Pinterest API is checked on the plugin settings page?

goldenis commented 8 years ago

@jaredatch Pinterest API was checked already.

goldenis commented 8 years ago

@jaredatch Can you check why PInterest still shows 0?

jaredatch commented 8 years ago

Pinterest counts should start to show up as the cache expires.

goldenis commented 8 years ago

I've disabled all caches from the site but still shows 0. are you using §like_count from PInterest responds?

billerickson commented 8 years ago

No, we're using count from Pinterest. This this result:

{"url":"http://blog.paleohacks.com/turkey-bacon-burger-recipe/","count":173}
jaredatch commented 8 years ago

Sorry, I should have clarified. The server cache isn't the only cache - EASC has it's own cache, otherwise the plugin would end up crashing the server from the requests.

Cache times depend on how old the post is (and are adjustable via a filter).

They should expire roughly over 24 hours or so.

See http://blog.paleohacks.com/edible-cookie-dough/

Also you can manually refresh the cache using the metabox on the post edit screen (https://cl.ly/1f3W1W1v2N13).

goldenis commented 8 years ago

@jaredatch Thanks for quick response.

I've already tried to refresth the cache using the metabox but it didn't work.

http://blog.paleohacks.com/coconut-flour-pancakes/

check the above link, please.

from the api, it's returnig over 100K counts but in meta box, it still shows 0.

jaredatch commented 8 years ago

@Maybe there is a slight delay in the refresh. Shows for me https://cl.ly/1W3m3g1n3c1J

Also, I'm logged in, so I'm by passing the cache.

If you are not looking at the logged in you'll be getting the cached version, with the old (0) count.

jaredatch commented 8 years ago

Also, in a previous update, we changed how the refresh works to try to speed things up.

When a refresh is triggered, it returns the old (expired) counts, and then runs the refresh right before the server request ends.

So when you trigger a refresh in the metabox, even though the refresh is happening, I think it might be showing the stale numbers. I'll how to look into that deeper and see if thats the case or not.