<p>I'm just trying out the <a href="https://dukt.net/twitter/docs/installation" rel="nofollow noreferrer">Dukt Twitter plugin</a>. 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.</p>

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

{% if tweets %}

  &lt;h2&gt;Recent Tweets&lt;/h2&gt;

  &lt;ul&gt;
    {% for tweet in tweets %}
      &lt;li&gt;&lt;a href="{{ tweet.url }}"&gt;{{ tweet.text }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
  &lt;/ul&gt;

{% endif %}
</code></pre>

CC BY-SA 4.0
2019-11-14T10:29:11.293Z
Hi Stephen, you got any solutions for this? I am having same problem but did not find anything. The DUKT plugin is deprecated.
Himanshu Upadhyay
CC BY-SA 4.0
2019-11-14T17:54:24.330Z
I don't think I got anywhere with this so left it, sorry.
Stephen
CC BY-SA 4.0
2019-11-19T03:34:37.717Z
So you got anything else to fetch tweets on the Craft site?
Himanshu Upadhyay
<plugins><plugin-dukttwitter>
How to output a tweet URL in a user timeline using the Dukt Twitter plugin
# How to output a tweet URL in a user timeline using the Dukt Twitter plugin

(Asked by: username_0 on 2017-04-10)

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 %}

  Recent Tweets

  
    {% for tweet in tweets %}
      {{ tweet.text }}
    {% endfor %}
  

{% endif %}

**Tags:** plugins, plugin-dukttwitter
> **Comments:**
> **username_1**: Hi Stephen, you got any solutions for this? I am having same problem but did not find anything. The DUKT plugin is deprecated.  
> **username_0**: I don't think I got anywhere with this so left it, sorry.  
> **username_1**: So you got anything else to fetch tweets on the Craft site?  

---

## 0 answers

