How to create twitter widget based on twitter id


#1

I want to display twitter widget on my website. I have only twitter name. I have no data-widget-id.

I have used this code. i have got warning “TWITTER WIDGET: The Twitter API v1.0 is deprecated, and this widget has ceased functioning.”

Please give me solution.

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 3,
  interval: 30000,
  width: 390,
  height: 100,
  theme: {
    shell: {
      background: '#854b4b',
      color: '255'
    },
    tweets: {
      background: '#b833b8',
      color: '#b32eb3',
      links: '#634563'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().setUser('jain_abhishek_9').start();
</script>

Thanks
Abhishek Jain


#2

These old widgets do not work anymore. You should now use embedded timelines https://dev.twitter.com/docs/embedded-timelines.
To create an embedded timeline, go to your Settings page on twitter.com, then click on Widgets, then create a new one.


#3

hello dear,
i have used below this code . but i don’t have data-widget id. I have only twitter name.
I want to confirm that this code run without data-widget_id.

Tweets by @twitterapi

#4

No you need a widget id. Why don’t you want to give a widget id?
A new widget id can be generated by going to https://twitter.com/settings/widgets and creating a new widget.


#5

Vincent, I cannot get it to generate it just outputs data-widget-id="" blank. Any idea? I deleted, added, etc. the same.


#6

Hello Vincent. I’m developing a system that generate websites. So, I would like that it be easy for simple users and they put only the account’s twitter name. Is it possible?
Thanks


#7

You may generate a widget ID for your website generator and override individual usernames with data-screen-name.
https://dev.twitter.com/web/embedded-timelines/user


#8