[Solved] How to embed twitter feed in a block

The problem: Twitter no longer supports widgets, and all the Twitter feed extensions use the WID or widget ID as the key to connecting to a Twitter feed. Work appears to have stalled on updating the modules.

The solution (with key hints and thanks to @hassebasse):

  • Go to Twitter development Documentation
  • Get the embed code for your timeline
  • Create a block the usual way
  • Use Full HTML, click the Source button, and paste the embed code in. Then unclick the Source button, save.
  • Place your block in the usual way.

The basic code for a timeline will look like this:

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

The development documentation lists additional parameters used to control number of tweets, style, size…)

Drupal version: 

Source: https://www.drupal.org/taxonomy/term/22/feed