Creating an embedded timeline for any public twitter user


Currently in the docs for embedded timelines
it says the following:
“You may create an embedded timeline for any public Twitter user.”

However, when I create a widget under my twitter account and use the suggested code snippet

<a class="twitter-timeline" href="" data-widget-id="YOUR-WIDGET-ID-HERE">Tweets by @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Setting the href to a different user doesn’t do anything. It seems that I can’t pull anyone else’s tweets but mine using the widget. Contrary to what the documentation says.

I need to dynamically pull a user’s twitter feed to display on their profile for use on our website.
The current TWTR.WIDGET works well for what I need it, but it is being phased out because it uses API 1.0 instead of 1.1.

How can I embed the timeline for any user? Is the documentation incorrect or is it missing the correct code?


You can create an embedded timeline for any public Twitter user – provided you create the widget using the configurator on – the widgets currently do not support dynamically changing criteria, like the user to pull a user timeline for.

If you want to offer a more dynamic experience, you would have to build a server-side solution and your own timeline rendering code instead.


That’s rather frustrating…

I don’t understand why you would get rid of this functionality in the first place.

Why not have the widget be able to dynamically pull any public user’s feed? Seems like a much more elegant way of integrating feeds into a website, rather than having to integrate the API and build a custom solution…

I suppose I’ll build something using the API…


For anyone looking for a solution, there are various libraries available.

It seems that you might just have to style the output with css and html to make it look like the original feed, or however you want it.


Is there an API that you input any user’s Twitter ID and it gives you a data-widget-id for that user?


Phew… So, let us se. We give our 50k bloggers an option to “embed twitter widget, just paste your username and we will do the rest”. This feature breaks. I search altavista like a madman. I come here. I find out we have to use some api that no one has neither the time nor want learn, and it also puts the burden on us to cache serverside, load async and so forth…

We will try to ditch twitter altogether.

Sorry for whining, couldn’t help it :slight_smile:


Please see the documentation for Timeline Selection:

If you’re running a network of blogs, you can configure one embedded timeline for your network, and then use your blogger user’s screen name input to determine the timeline to display, using the data-screen-name attribute.



I too have the same issue. I have a large number of customers using my Themes ( installed on different servers etc ), they each have the option to enable a custom built Twitter widget ( using OAuth and 1.1 API ), which pulls X number of tweets for the username they entered and now it’s not working, or it displays every so often, which I’m guessing is due to hitting the rate limit.

If you’re trying to discourage developers to not use Twitter Apps in this way, please clearly say so and I’ll remove support for Twitter within my themes.


Thanks, it’s just what I needed!



Well I’ve time and learned how to hack twitter, here is the gits(hopefully it will solve some time of ya guys)