通过 url 获取 Twitter 分享数量

发布于 2024-12-10 20:22:10 字数 394 浏览 0 评论 0原文

我有一个关于推特计数的问题。这一切都是那么模糊。 简单地: 我有一个带有动态页面的网站,有推文按钮,人们进入页面,按推文,它显示在他们的推特上,指望我的页面增加。但我还需要在我的后端打电话给推特并询问他们我已经有多少分享并计算在内。

这是投票的概念。人们通过分享到 Facebook 和 Twitter 来为该网站投票,所以我需要将这些选票统计在一起。请不要向我推荐像我尝试过的“sharecount”这样的脚本,它有很多问题,而且不可靠。 我可以轻松地从 Facebook 获得点赞,但我似乎不知道如何从 Twitter 获得分享数量。

另外,如果有人可以帮助我,有没有办法从独特用户那里获得分享?我注意到,如果我在网站上发推文 50 次,则计数器为 50。我希望它将 1 个用户的 50 条推文计为 1。

感谢您的帮助!

I have a question about twitter counting. Everything is so blury about this.
Simply:
I have website with dynamic pages, button for tweet, people go to page, press tweet, it shows on they twitter, count on my page increase. but I need also on my backend to call to twitter and ask them how many shares i have already and count with that.

It is concept for voting. People by sharing to facebook and twitter are voting for the website, so i need to take those votes and count them together. Please dont recommend me scripts like "sharecount" i tried and it has a lot of issues, and its not reliable.
I can get easily likes from facebook but i dont seems to get how to get the number of shares from twitter.

Also if anyone can help me, is there a way to get shares from unique users ? I noticed that if i tweet the site 50 times, the counter is 50. I would like it to count 50 tweets from 1 user as 1.

Thanks for help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2024-12-17 20:22:10

请参阅私有 API 方法 http://urls.api.twitter.com/1/urls/count.json?url=

See the private API method http://urls.api.twitter.com/1/urls/count.json?url=

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文