# Link Discourse with a Twitter account (Adding Twitter card and via attribute)

**URL:** https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995
**Category:** Feature
**Created:** [27.Апрель.2015 14:09:58 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995 "2015-04-27T14:09:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)
#### Post date: [27.Апрель.2015 14:09:58 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/1 "2015-04-27T14:09:58Z")

</div>

I think it could be great to be able to link an Discourse install with a Twitter account.

We could use it to:

- Add Twitter card: [X Developer Platform](https://dev.twitter.com/cards/types/summary)
- Add `via` attribute in the share link for Twitter: [X Developer Platform](https://dev.twitter.com/web/tweet-button/web-intent)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [28.Апрель.2015 01:45:48 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/2 "2015-04-28T01:45:48Z")

</div>

This already happens, in fact you have to set up Twitter logins to get Twitter to embed at all… however, official Twitter embeds of variable size (height) cause huge problems in our rendering strategy within topics.

@techapj implemented this but it caused wild fluctuations in page rendering when a big, tall (but unknown in height until actually rendered) Twitter “official” embed appeared on the page. Like with, say, an image in it.

---

<div class="post-metadata">

### Author: ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)
#### Post date: [28.Апрель.2015 02:09:04 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/3 "2015-04-28T02:09:04Z")

</div>

Sorry, it looks like I wasn’t clear. My idea is to add a Twitter account field in admin to have nice Twitter card for subject.  
Here is what we have currently with the [Twitter card validator](https://cards-dev.twitter.com/validator):

 ![](https://global.discourse-cdn.com/meta/original/3X/1/a/1abd0c85d2a19ca6da3921c35fd167eb38269cc6.png)

---

<div class="post-metadata">

### Author: ![David\_Baker1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_baker1/32/67655_2.png) [@David\_Baker1](https://meta.discourse.org/u/David_Baker1)
#### Post date: [08.Июль.2017 13:31:23 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/4 "2017-07-08T13:31:23Z")

</div>

Did this go anywhere? My use case: a reader appreciates a post I’ve written. They want to share it out on Twitter using the built-in Discourse link-share feature. That feature defaults the content of the tweet to Title and URL. If my Twitter handle was part of my Discourse profile then the default text could also include ‘via @myaccount’ and I would get a notice in Twitter and I could, in turn, retweet and that might drive more readers back into the Discourse.

---

<div class="post-metadata">

### Author: ![ChristopherMcEwan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christophermcewan/32/41465_2.png) [@ChristopherMcEwan](https://meta.discourse.org/u/ChristopherMcEwan)
#### Post date: [08.Июль.2017 22:02:38 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/5 "2017-07-08T22:02:38Z")

</div>

Hey David, it is a good idea but I don’t think I was the original poster. Good luck in pursuing.

Chris

----- Reply message -----

---

<div class="post-metadata">

### Author: ![David\_Baker1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_baker1/32/67655_2.png) [@David\_Baker1](https://meta.discourse.org/u/David_Baker1)
#### Post date: [08.Июль.2017 23:29:11 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/6 "2017-07-08T23:29:11Z")

</div>

Yes, hoping to hear from @CamilleRoux soon 🙂

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [04.Декабрь.2025 11:35:53 UTC](https://meta.discourse.org/t/link-discourse-with-a-twitter-account-adding-twitter-card-and-via-attribute/27995/7 "2025-12-04T11:35:53Z")

</div>


