Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dynamic twitter widget id

Tags:

twitter

I want to use the new twitter embedded timelines (https://dev.twitter.com/docs/embedded-timelines) but how can I get the data for the right user by username? I have a lot of websites with users (>500) who have their username in the database but as far as I can see you have to give a data-widget-id to get the tweets from the right user.

Is there any way to do this by username? And if not, how can I quickly convert all my users' data-widget-id to the database?

Any help is appreciated

like image 789
Moose Moose Avatar asked Oct 04 '22 20:10

Moose Moose


1 Answers

Looks like the best you can do is get a single valid data-widget-id and use it for many different user names using the data-screen-name property.

There is a discussion here from one of the twitter devs. The same one as @alex_b posted in the comments.

like image 144
dfockler Avatar answered Oct 07 '22 20:10

dfockler