In metabox, Facebook count should show the count from FB
Possible Solution
We need to pass the fields=engagement query param to https://graph.facebook.com/. At the moment plugin is passing only the id and token, with this param FB is returning the same id which we passed. When I add the fields=engagement to the URL, I'm getting reaction_count, share_count, comment_count.
Plugin version
1.3.0
Current Behaviour
Facebook count is always 0 in metabox
Expected Behaviour
In metabox, Facebook count should show the count from FB
Possible Solution
We need to pass the
fields=engagement
query param to https://graph.facebook.com/. At the moment plugin is passing only the id and token, with this param FB is returning the same id which we passed. When I add thefields=engagement
to the URL, I'm getting reaction_count, share_count, comment_count.Steps to Reproduce (for bugs)
https://graph.facebook.com/?id=https%3A%2F%2Fbreakingdefense.com%2F2021%2F04%2Fwhy-putin-threatens-ukraine%2F&access_token={FB_TOKEN}
https://graph.facebook.com/?id=https%3A%2F%2Fbreakingdefense.com%2F2021%2F04%2Fwhy-putin-threatens-ukraine%2F&access_token={FB_TOKEN}&fields=engagement
Screenshots (if appropriate)
Current behaviour Expected behaviour