I have an embedded timeline in my site and I want to trigger a callback when there are new tweets in the timeline. Is there any event in the widgets-js that can be bound?
Here is my current code for creating the timeline:
twttr.widgets.createTimeline({
sourceType: "profile",
screenName: "user"
},
this.refs.Container,
{
height: '600',
tweetLimit: maxTweets,
showReplies: 'false',
chrome: 'noheader,nofooter'
}).then(function (el) {
context.setState({userTweets: true});
});
Everything works well but I want to fire an action when new tweets comes in how can I do that with the widget events?
Thanks.