Is there any way to get number of users share some link on Facebook,Twitter,LinkedIn
example: how many times some link was shared to Facebook,Twitter,LinkedIn to calculate popularity of some content.
how to get share count my particular api ? is there any other option ? Are there some api ?
This function will fetch share counts from facebook, g-plus, linkedin, pinterest
Update
Ref:
intgr/(number)
is number of shares and all responses are inJSON
Facebook
Returns:
Twitter
Returns:
v1.1 Update
Version 1.1 of Twitter API which does not support
count.json
. Thus, it will not be possible to retireve tweets counts. However, I figured out that Tweet Buttons use a custom endpoint to get these numbers.Here's the new endpoint
I am not sure whether Twitter will take this endpoint down, and replace it when they officially shutdown v 1.0, but it works.
LinkedIn
Returns:
Getting shares count with jQuery
Ref: for Twitter and linkdIn I had to add
callback
to get a responseHTML:
JS:
Complete Fiddle
UPDATE:
Another Fiddle (returns the total shares across the 3 above)
I found Answer ...!!!!!!!
Data URLs Here’s where you can find the data
Note: Since I’m using “dynamic,” this requires .NET 4.0. Also, I’m using the JavaScriptSerializer class which is officially depreciated, but will probably not actually be removed. You could also easily use Regex to get these simple values.*
This Javascript class will let you fetch share information from Facebook, Twitter and LinkedIn.
Example of usage
Download
https://404it.no/js/blog/SocialMediaStats.js
Add to HTML header like this:
More examples and documentation
Javascript Class For Getting URL Shares On Facebook, Twitter And LinkedIn
check this:
//to change the URL to yours, you will find a http://www.google.com just take it off and add your http://www.yourdomain.com
and you can check up this facebook developer pages too which is very useful https://developers.facebook.com/docs/plugins/share-button/