Embedded profile timeline

A profile timeline displays the latest Tweets ordered from newest to oldest from a specific public Twitter account.

Generate markup for an embedded profile timeline on publish.twitter.com

HTML markup

A responsive profile timeline can be added to a webpage through a common HTML template.

A template example:

      <a class="twitter-timeline"
Tweets by @{screen_name}
      <a class="twitter-timeline"
Tweets by @TwitterDev

JavaScript factory function

Twitter’s widget JavaScript library supports dynamic insertion of an embedded profile timeline using the twttr.widgets.createTimeline function. Pass a data source definition, target container element, and optional options object to insert an embedded timeline into your page.

HTML data-* parameters are camelCased when passed as an options object property.

    sourceType: "profile",
    screenName: "TwitterDev"
Was this document helpful?
Thank you

Thank you for the feedback. We’re really glad we could help!

Thank you for the feedback. How could we improve this document?
Thank you for the feedback. Your comments will help us improve our documents in the future.