如何从twitter按钮获得“只有tweet计数” [英] How to get 'ONLY the tweet count' from the twitter button

查看:177
本文介绍了如何从twitter按钮获得“只有tweet计数”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一直在查看 http://dev.twitter.com/pages/tweet_button#构建自己的例子,他们只显示如何自定义缩略图,但我只需要它只是一个没有图形纯文本,tweet计数NUMBER。并集成我的tweet帖子,所以它计数了我的帖子的tweets。

ive been looking at the http://dev.twitter.com/pages/tweet_button#build-your-own-example , they have only show how to customize the thumbnail, but i all i need it just a 'no graphic' plain text, tweet count NUMBER. and integrate it my tweet post, so it counts the tweets for my post.

这里有很多noob,有没有人知道如何实现呢?
感谢

Im quite noob at this, does anyone know how to achieve this? Thanks

推荐答案

Twitter没有公开的API来表达网址的共享计数。该按钮使用一个您可以使用的私有方法,但它可能会随时更改,如果有的话会破坏您的按钮。

Twitter does not have a public API to surface the share count for a URL. The button uses a private method that you could use but it is likely to change at anytime and will break your button if it does.

https://cdn.api.twitter.com/1/urls/count.json?url=http://google.com

这篇关于如何从twitter按钮获得“只有tweet计数”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆