How to know if the timeline has been updated?



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:

              sourceType: "profile",
              screenName: "user"
                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?



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.