In a recent #NT2tEU Twitter chat someone posed the question about how you link Twitter and Moodle together. There were suggestions about using your Twitter account to post messages about upcoming events and assignments in Moodle, linking back to them with the URL.
The way I tend to use Twitter and Moodle together is the other way round. I let Moodle take care of sending out the emails it needs for notifications, and I use Twitter as a way of pulling interesting feeds of information back into my Moodle courses.
To do this we are going to set up a Twitter Widget and then embed this code into a HTML block on our Moodle course page
Step 1 – Set Up Twitter Widget
- Log into your Twitter account
- Click your user profile picture and from the menu select “Settings“
- In the Settings page, select “Widgets“
- Now click the “Create new” button
- In this screen you can now choose what you want to display in this widget. You can choose from:
- User timeline – the tweets from an individual user (including yourself!)
- Likes – Tweets which have been liked by an individual user
- List – Tweets from lists which you own or have subscribed to
- Search – Tweets which are returned from any search terms
- Collection – Tweets from a collection which you have created on TweetDeck
- I am going to look at using the “Search” option here. This screen grab shows a search of the Picademy hashtag
- Once you are happy with your preview, click the “Create widget” button
- You will then be presented with a small window with some HTML code in it. Copy all of the code in this window – We will use this in the next section!
- Close the pop up telling you that it might take some time to update the settings and now click “<– Back to widget settings” in the top right to return to the widget settings page.
Step 2 – Create our HTML Block in Moodle
- Log into Moodle and navigate into your course you want to create your HTML block in
- Turn course editing on through the “Course Administration” menu
- From the “Add a block” drop down menu select “HTML“
- Now click the cogs icon for the “(NEW HTML BLOCK)” and select “Configure (new HTML Block) block“
- You can now give the block a title. I am going to call this “#Picademy Tweets“
- In the content section click the “< >” button to switch to the HTML mode editor and then paste the code from Twitter into the editor
- Click “Save changes” to save your block and return to your course page
- Click “Turn editing off” to view your embedded Twitter stream on your course page!