我使用这段代码,因为有一段时间在任何网站上嵌入任何推特账号的推文,我也使用php从mysql数据库中获取推特账号
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 6,
interval: 30000,
width: 172,
height: 205,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#82cbed'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
behavior: 'default'
}
}).render().setUser('<?php echo $twitter_is; ?>').start();
</script>
Run Code Online (Sandbox Code Playgroud)
小智 6
我不同意shofnee.
截至2013年6月11日,Twitter已停止使用旧的API,这似乎已停止您的代码工作(我处于类似的位置).更多信息可以在https://dev.twitter.com/blog/api-v1-is-retired找到
| 归档时间: |
|
| 查看次数: |
7636 次 |
| 最近记录: |