Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Does this has anything to do with Facebook deprecating it’s old API? Because if it does, this are bad news imo, meaning other Jetpack code may also be close to obsolete.

    @ethos It is somewhat related, yes, but you can reset assured: other aspects of Jetpack are safe. Sharing buttons are the only place where we use an unversioned Facebook Graph API endpoint.

    Facebook told developers it’s going to deprecate this API some time ago. And you’re updating only now? When the old code it’s no longer working?

    We’ve made multiple changes to the way we fetch sharing counts in the past year.

    1. When Facebook announced that they were deprecating version 1 of their API, we switched to our own API.
    2. A few months later, after chatting with Facebook Developers (see bug report here), we switched to using an unversioned Facebook Graph API endpoint, as Facebook confirmed that hitting that endpoint without specifying a version should default to v2.x, and that an authentication token was not required. You can check our changes in this Pull Request.
    3. Last week, Facebook changed the endpoint’s response structure; the data is still available, but the response is organized differently now. That change wasn’t documented nor announced in their changelog, and that’s what caused the problems with Jetpack and many other plugins, as mentioned here. We consequently adapted to the new response structure in Jetpack 4.2.2. You can see the change here.

    I hope this clarifies things a bit. You can rest assured, we keep an eye on Facebook’s API changes, and we’ll update Jetpack when necessary ??

    @jeremy Herve

    Ok, thank you for the response. ??

    I updated my Jetpack and now my facebook shares have zeroed. Can I get them back?

    wwww.positivepeoplearmy.com

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @positivepeoplearmy Facebook’s sharing counts come from Facebook directly, so there isn’t much I’ll be able to do to help you, I’m afraid.

    You can use Facebook Debug to check how many counts Facebook sees for each one of your posts:
    https://developers.facebook.com/tools/debug/og/object/

    It’s worth noting that Facebook stores sharing counts per URL, so if you recently switched to a new domain name or changed your site’s permalink structure, all your post URLs are now different, and sharing counts will start from scratch.

    I hope this clarifies things a bit.

    I have the same problem, and something strange happen when i open a in Chrome private navigation window i can see the counter. i have some other strange behavior with cache too.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Number of Facebook shares:’ is closed to new replies.