How to add a Twitter timeline widget to Moodle after June 2013

Two years ago we wrote a blog post about how to add a Twitter timeline to a Moodle site via the Remote RSS Feeds block. Unfortunately Twitter fully retired its API v1 in June 2013 which means you can no longer pull in a Twitter timeline via the method described in that old blog post. However, subsequently Twitter introduced a new way for users to embed their own Twitter timelines on websites. In this blog post we are going to walk you through the steps to achieve this.

End result

You can view an example on our theme demo site here.


Log in to your Twitter account and navigate to the settings page.


Step 2

Click the “Widgets” option in the left nav.

Step 3

Click the “Create new” button.


Step 4

Configure the widget depending on your needs and click the “Create widget” button.


Step 5

Copy the generated widget code. Also don’t forget to save the widget by clicking the “Save changes” button.


Step 6

Log in to your Moodle site as an administrator. Turn editing on and add an HTML block.


Step 7

Configure the newly added HTML block and paste the widget code into the text editor’s HTML source editor.


Step 8

Save changes and turn off editing. Now you should see the Twitter timeline embedded in your Moodle site.


It is also possible to customize the appearance of the timeline.To find out more on how you can customise the widget further you can check out Twitter’s official documentation for developers.

Want to master Moodle?

Moodle 3.0 Masterclass: Your Complete Guide to Moodle 3.0

This online course on Moodle 3.0 will teach you how to create WORLD CLASS online courses. Leverage Moodle 3 like a BOSS!

600+ students enrolled

Want to set up Moodle?

Learn to Host Moodle with Linux

Become a Moodle Administrator a much needed skill . More than 70 million users across 230 countries are using Moodle.

1000+ students enrolled
  • Andrew

    This doesn’t work for me. The HTML source editor doesn’t seem to be available in Moodle, and pasting the widget code into the ‘content’ box (which is the only place I can put it) doesn’t work.

    • Andrew

      Found it now–after much hunting. The icon on the Moodle I am using is completely different in appearance and position from the one you show! But thanks for the pointer; it got me there in the end.