Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

update please FB code #212

Open
CB9TOIIIA opened this issue Apr 23, 2019 · 0 comments
Open

update please FB code #212

CB9TOIIIA opened this issue Apr 23, 2019 · 0 comments

Comments

@CB9TOIIIA
Copy link

counterUrl: 'https://graph.facebook.com/?id={url}',

https://stackoverflow.com/questions/5699270/how-to-get-share-counts-using-graph-api

facebook: {
        counterUrl: 'https://graph.facebook.com/?id={url}',
        convertNumber: function(data) {
            return data.share.share_count;
        },

стало

facebook: {
        counterUrl: 'https://graph.facebook.com/v2.2/?id={url}&fields=og_object{engagement}',
        convertNumber: function(data) {
            return data.og_object.engagement.count;
        },

+ токен еще лучше юзать

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant