darklow / social-share-kit

Library of decent and good looking CSS/JavaScript social sharing icons, buttons and popups
http://socialsharekit.com
Other
398 stars 75 forks source link

Facebook share count is a wrong #67

Open anorudes opened 7 years ago

anorudes commented 7 years ago

Hello.

The shares of the facebook include other data - number of comments, likes and more. https://www.sharedcount.com/ (Add any url and click the plus)

For example: http://google.com Shares: 14.66m Comments: 2.68m Comments Plugin: 10.13k Reactions: 26.2m

The "social-share-kit" give out sum of numbers.

How to get only shares count?

matinfo commented 7 years ago

The number of share returned come from: https://graph.facebook.com/?id=http://google.com.

To get more precise result need to use FB API call, and to do such call, need a FB accessToken.

FB dev doc say: However, an app_access_token or user_access_token is needed for engagment field requests.

Social-share-kit currently not request such FB accessToken for simplicity.