向 Twitter 发布消息后的回调
我通过链接向推特发布消息: http://twitter.com/intent/tweet?source=webclient&text=Hello
我感兴趣的是,在发布消息后是否可以重定向到某个网址?例如,Facebook 在 URL 中添加了“redirect_uri”参数。消息发布到墙上后,用户将被重定向到此 URL。
I am posting messgae to twiter via link:
http://twitter.com/intent/tweet?source=webclient&text=Hello
I am interested in if it is possible to be redirected to some url after posting message? For example Facebook has "redirect_uri" parameter added to the URL. User is redirected to this URL after the meesage is posted on the wall.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Web Intents 的事件绑定在发推后重定向到 URL。
以下链接可能会有所帮助:
https://dev.twitter.com/docs/intents/events#事件
https://dev.twitter.com/discussions/671
You can use events binding for Web Intents to redirect to a url after tweeting.
Following links might help :
https://dev.twitter.com/docs/intents/events#events
https://dev.twitter.com/discussions/671
根据 文档,推文 Web 意图没有允许用户在发布推文后返回您的网站。
我见过的大多数网站都会在弹出窗口中呈现网络意图,而不是让用户离开他们的网站。
According to the documentation, the tweet web intent does not have a parameter that allows the user to return to your website after the tweet is posted.
Most websites that I've seen present the web intent in a popup instead of sending the user away from their site.