如何创建一个 Twitter 链接,用一些文本自动填充用户状态?
How do you create a link (<a>
) that will send the user to Twitter and auto-populate the status field with some text? I've clicked links like this before, but not sure how it's created.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如对 2014 年之后发现此问题的任何人的提示一样,Twitter API 已继续发展,您现在必须使用 http://twitter.com/intent/tweet?text=
更多信息可以在这篇博客文章中找到 http://camgould.com/blog/posts/creating-a-link-that-posts-a-tweet
Just as a note to anyone who finds this in 2014 onwards, Twitters API has moved on and you now have to use http://twitter.com/intent/tweet?text=
More info can be found on this blog article http://camgould.com/blog/posts/creating-a-link-that-posts-a-tweet
将链接指向 http://twitter.com/home?status=some_text
Point the link to http://twitter.com/home?status=some_text