Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output Facebook Likes, Comments, Clicks & Shares Seperate as well #18

Closed
BlockChainBobC opened this issue Jun 4, 2016 · 2 comments
Closed

Comments

@BlockChainBobC
Copy link

BlockChainBobC commented Jun 4, 2016

This is a great Library, For facebook it uses the Total Number of Shares, Likes, and Comments which is good for some things.....

For my purposes however I need the total count AND the numbers separated. For example if I send the URL:

http://nba.com/warriors/gameday/20160522/recap

To your Script at: https://count.donreach.com/?url=http://nba.com/warriors/gameday/20160522/recap

it Returns:

{
"url": "http://nba.com/warriors/gameday/20160522/recap",
"total": 16797,
"shares": {
"facebook": 16797,
"google": 0,
"linkedin": 0,
"pinterest": 0
}
}

If we send it Directly to the Facebook API Graph at: https://api.facebook.com/method/links.getStats?format=json&urls=http://nba.com/warriors/gameday/20160522/recap

we get:

[{"url":"http:\/\/nba.com\/warriors\/gameday\/20160522\/recap","normalized_url":"http:\/\/www.nba.com\/warriors\/gameday\/20160522\/recap","share_count":117,"like_count":15815,"comment_count":865,"total_count":16797,"click_count":0,"comments_fbid":"991016050996638","commentsbox_count":11}]

Your script Returns only the "total_count". Could the script be changed to return at least for Facebook all the important additional parameters like shares separated from likes and comments like so:

{
"url": "http://nba.com/warriors/gameday/20160522/recap",
"total": 16797,
"shares": {
"facebook": {
"total_count":16797,
"commentsbox_count":11,
"click_count":0,
"comment_count":865,
"like_count":15815,
"share_count":117
},
"google": 0,
"linkedin": 0,
"pinterest": 0
}
}

What changes would be needed to do this?

@abemedia
Copy link
Owner

abemedia commented Jun 5, 2016

The hosted API on https://count.donreach.com/ has long been replaced with a new app written in go (this repo is pretty much unmaintained). We're about to launch a new version so I might be able to squeeze this in as an extra option in the next version (by adding something like &detailed=true to the URL). Will update you when it's released.

@abemedia
Copy link
Owner

This definitely won't happen now since the Facebook API doesn't display like counts anymore.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants