重新渲染通过JS分享Tweet按钮 [英] Re-render Tweet button via JS
问题描述
我用这个片段重新呈现鸣叫按钮。
I used to use this snippet to re-render a Tweet button.
var tweetButton = new twttr.TweetButton(twitterScript);
twttr.render();
但它看起来像widgets.js(http://platform.twitter.com/widgets.js)进行了修改,twttr.TweetButton不再是一个构造函数。
But it looks like widgets.js (http://platform.twitter.com/widgets.js) has been modified so twttr.TweetButton is no longer a constructor.
任何人都可以帮助解决这个问题?
Can anyone help with this issue?
推荐答案
看起来像 twttr.TweetButton
构造函数从未支持过,现在最后一个API后不再工作更新:
Looks like the twttr.TweetButton
constructor was never supported, and now no longer works after the last API update:
- <一个href="http://groups.google.com/group/twitter-development-talk/browse_thread/thread/bcda486acdf4ab42/6a557050f850ccf2?lnk=gst&q=+twttr.TweetButton#6a557050f850ccf2" rel="nofollow">http://groups.google.com/group/twitter-development-talk/browse_thread/thread/bcda486acdf4ab42/6a557050f850ccf2?lnk=gst&q=+twttr.TweetButton#6a557050f850ccf2
受支持的方法是创建一个 IFRAME
为基础的资料Tweet按钮动态:
The supported method is to create an iframe
-based Tweet button dynamically:
虽然注意到 @ Runningskull的回答的最新消息。
Although note @Runningskull’s answer for updated information.
这篇关于重新渲染通过JS分享Tweet按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!