I'm just trying out the Dukt Twitter plugin. Is it possible to output a link to a tweet within a timeline? I've tried guessing {{ tweet.url }}, but that doesn't work. I don't want to auto-link the tweet itself using {{ tweet.text|autoLinkTweet) }}, as I'm wanting to output the entire tweet as plain text. I've included my code below and thanks for any help in advance.

{% set tweets = craft.twitter.get('statuses/user_timeline', { screen_name:'craftcms', count: 3, trim_user: false }) %}

{% if tweets %}

  <h2>Recent Tweets</h2>

    {% for tweet in tweets %}
      <li><a href="{{ tweet.url }}">{{ tweet.text }}</a></li>
    {% endfor %}

{% endif %}
  • Hi Stephen, you got any solutions for this? I am having same problem but did not find anything. The DUKT plugin is deprecated. Nov 14, 2019 at 10:29
  • I don't think I got anywhere with this so left it, sorry.
    – Stephen
    Nov 14, 2019 at 17:54
  • So you got anything else to fetch tweets on the Craft site? Nov 19, 2019 at 3:34


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.