Twitter共享按钮不转发自定义文本 [英] Twitter share button doesn't forward custom text

查看:72
本文介绍了Twitter共享按钮不转发自定义文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用每个产品的Twitter分享选项的网站.

I'm working on a website with twitter share option for each specific product.

我遵循了Twitter API上的tweet共享说明,除自定义文本显示外,其他所有功能都正常运行.例如,我希望用户发这样的推文:您怎么看?我应该买这个吗? http://url.etc @mywebsite"

I followed twitter API instructions for tweet-sharing, and everything works fine except custom display of text. For example I want user to tweet like this: "What do you think? Should I buy this? http://url.etc @mywebsite"

但是当用户发推文时,我得到的只是链接: http://url.etc

but all I get when user tweets is the link: http://url.etc

这是代码:

<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<a target="_blank" href="https://twitter.com/share" data-url="http://bit.ly/twitter-api-announce" data-via="testtest" data-text="What do you think? Should I buy this? " data-count="none" data-counturl="http://groups.google.com/group/twitter-api-announce" >TWITTER</a>

问题似乎出在数据文本选项上.

The problems seems to be with data-text option.

对此有任何经验吗?有想法吗?谢谢

Any experience on this? Ideas? Thanks

推荐答案

在Wordpress上,我只是使用< a href ="https://twitter.com/share?url=google.com&text=your在此处输入文字"> Tweet</a>

On Wordpress I just used <a href="https://twitter.com/share?url=google.com&text=your text here">Tweet</a>

像魅力一样工作!

这篇关于Twitter共享按钮不转发自定义文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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