Twitter for Moodle
You can add an HTML block to your course to display your Twitter profile, or lists, searches, or favorites.
Steps to add Twitter in Moodle
- Go to your Moodle course > Turn editing on
- Add an HTML block to your course from the Add blocks menu
- Go to the widgets page on Twitter > Create New
- Follow the steps there to customize the settings, preferences, appearance and dimensions of your twitter widget.
- When you are satisfied with the way it looks, click the "Create Widget" button
- Copy the embed code that Twitter generates for you
- Go back to your Moodle HTML block that you've created in Step 1 > Click on the gear icon > Configure (new HTML block) block
- Give the block a title and expand the 'Content' menu
- Click on 'Edit HTML Source' button
- Paste the code from step 6 into here > Click 'Update'
- Save changes
- You will only see a link to the Twitter feed while you're still in the editor. The feed will appear after you save the HTML block and go back to the course home page view.
- You can also add a Twitter feed to the body of your course as a Label. (We don't recommend doing this. A Twitter feed takes up a lot of vertical space.)
- If you *still* see just a link to the Twitter feed while in the course home page view, you may have to turn off the HTML tidy filter.
- Add the widget code to either a Moodle Label (for display in the main body of the course) or an HTML Block (for display in the Blocks column). In the editor, choose the HTML view and paste the widget code. You won't see the widget in the editor, only after you've saved the Label or HTML block and view it on the course homepage layout.
A sample of widget code (searches for #sockmonkey)
<a class="twitter-timeline" href="https://twitter.com/search?q=%23sockmonkey" data-widget-id="316249092839849984">Tweets about "#sockmonkey"</a>
- Timeline setup on Twitter
- Customization options on Twitter
- Developer documentation on Twitter