Is there a way to programmatically check if a user shared a link on Facebook?

后端 未结 5 737
面向向阳花
面向向阳花 2021-01-30 11:39

I\'m currently using jQuery to record each click on a Facebook share link on my site, but I\'m looking for a more accurate solution. Instead of recording the clicks, I\'d like t

5条回答
  •  隐瞒了意图╮
    2021-01-30 12:23

    I came across this today: http://graph.facebook.com/http://stackoverflow.com

    It returns a total share count for a specified URL. I have unique URLs for each user in my application so I can track their shares easily by using this.

    It also works for twitter: http://urls.api.twitter.com/1/urls/count.json?url=http://stackoverflow.com

提交回复
热议问题