Reputation: 33
i'm using this code since a while to embed any twitter account tweets in any website , also i use php to get the twitter account name from a mysql database
<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>
Upvotes: 1
Views: 8014
Reputation: 707
If you're looking to get something similar wired up again, check out this how-to from the Twitter developer blog.
https://dev.twitter.com/blog/embedded-timelines-howto
Upvotes: 0
Reputation: 208
Try to read an example in - https://twitter.com/javascripts/widgets/widget.js May be it'll help
Upvotes: 0
Reputation: 76
I disagree with shofnee.
Twitter have discontinued their old API as of June 11th 2013 which appears to have stopped your code working (I am in a similar position). Further information can be found https://dev.twitter.com/blog/api-v1-is-retired
Upvotes: 6