推特 API。如何在其他网页留言?
我有一个网站,人们可以在其中对某些文章发表评论。 \
我想做的是将这些答案发布在我的推特页面上。
有办法吗?
谢谢
编辑1: 我环顾四周,但我对此很陌生,我想知道是否有人有一个适合我的入门示例
i have a website where people can leave comments on some articles. \
what i would like to do is to post those answers on my tweeter page.
is there a way?
thanks
edit1:
i've looked around but i am new at this and i was wondering if anyone has an starter example for me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,有一种方法可以以编程方式执行此操作,但这取决于您计划使用的语言。
另请注意,如果您的用户留下大量评论,您最终会收到大量推文。这很可能会达到 Twitter 的更新限制(每天 1000 个,进一步细分为他们未透露的数字)。此外,如果您包含链接,您可能会被报告为垃圾邮件。
对于 php,我建议您查看 twitteroauth。 JavaScript 可能会变得棘手,具体取决于它是浏览器扩展、Adobe Air 应用程序还是页面上的简单 JavaScript。
Yes there is a way to do this programmatically, but it depends on the language you plan to use.
Also be warned that if your users leave a lot of comments, you will end up with a lot of tweets. This will most likely hit twitter's update limit (1000 per day, further broken down into a number they don't disclose). Also if you include links you might get reported as spam.
With php, I recommend you look into twitteroauth. JavaScript might get tricky depending on if it's a browser extension, Adobe Air application, or simple JavaScript on a page.