Creating Embedded Twitter Feed On Site


#1

I want to create an embedded user timeline widget much like the ones provided using the https://twitter.com/settings/widgets/new page. However, I want the widget to change depending on whos profile on my site they visit. So I want the widget to dynamically change by pulling the twitter screen name from my database and using that in the widget to display a timeline of their tweets.

Ive tried using EJS to get the twitter details from my DB. However this doesnt work as the data-widget-id does not use the users twitter id. So how can I create a users timeline by passing in their screen_name to the widget so it changes based on which profile page is visited.


#2

Include a data-screen-name parameter in your markup to override the user chosen during your widget configuration.
https://dev.twitter.com/web/embedded-timelines/user


#3

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