Please note:

We are retiring the Likes, Collections, and Moments timelines on September 15, 2022. We recommended you use the Profile and Lists timelines, which we’re updating to become faster, easier to use, and more up-to-date with Twitter features and functionality.

You can learn more about this change in our announcement.

Embedded likes timeline

A likes timeline displays the most recently liked Tweets, ordered from newest to oldest, from a specific public Twitter account.

Generate markup for an embedded likes timeline on

HTML markup

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

A template example:

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

JavaScript factory function

Twitter’s widget JavaScript library supports dynamic insertion of an embedded likes 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: "likes",
    screenName: "TwitterDev"