# Support for Twitter Cards with large images?

**URL:** <https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215>\
**Category:** Development\
**Created:** [2016年九月16日 01:02 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215 "2016-09-16T01:02:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [2016年九月16日 01:02 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/1 "2016-09-16T01:02:00Z")

</div>

Looking through Discourse’s code, it looks like only standard Twitter Summary Cards are supported. I’d prefer to use [Summary Cards with large images](https://dev.twitter.com/cards/types/summary-large-image), which is a simple change to make, but I’m not sure how to hook into that code in `application_helper.rb`, or if that’s even possible. Any ideas for changing this meta tag to allow for including large images on Twitter Cards?

---

<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:** [2016年九月16日 01:29 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/2 "2016-09-16T01:29:20Z")

</div>

A) this already works, just have to enter your twitter API key or it will not work

> <https://twitter.com/dannyanimator/status/776505892833341440>

B) variable height stuff is not allowed in endless scrolling so whatever it is, we need to know its exact size to onebox it

---

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [2016年九月16日 02:44 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/3 "2016-09-16T02:44:25Z")

</div>

Sorry, I meant for Twitter Cards in tweets.

Example with Summary Card (Discourse default): [https://twitter.com/critcolaguild/status/775601821662474240](https://twitter.com/critcolaguild/status/775601821662474240)  
Example with Summary Card with [Large Image](https://dev.twitter.com/cards/types/summary-large-image): [https://twitter.com/Recode/status/776274344578207744](https://twitter.com/Recode/status/776274344578207744)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2016年九月16日 03:41 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/4 "2016-09-16T03:41:15Z")

</div>

I wanted to see what the one box displays look like

Example with Summary Card (Discourse default):

> <https://twitter.com/critcolaguild/status/775601821662474240>

Example with Summary Card with Large Image:

> <https://twitter.com/Recode/status/776274344578207744>

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2016年九月16日 03:49 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/5 "2016-09-16T03:49:24Z")

</div>

I think we should create a SiteSetting `twitter card type` that let’s you choose between:

- Summary Card (current one)
- Summary Card with Large Image
- Photo Card

Those types can be supported just by adjusting the type, no extra markup.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年九月16日 04:27 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/6 "2016-09-16T04:27:45Z")

</div>

> [@DanielMarquard](#):
>
> I meant for Twitter Cards in tweets.

Yes, this is on my to-do list. Relevant discussion here:

[https://meta.discourse.org/t/facebook-opengraph-images-not-working-on-the-homepage/46086/20?u=techapj](https://meta.discourse.org/t/facebook-opengraph-images-not-working-on-the-homepage/46086/20)

Will try to get it done by early next week.

---

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [2016年九月16日 04:49 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/7 "2016-09-16T04:49:48Z")

</div>

> [@pfaffman](#):
>
> I wanted to see what the one box displays look like

I don’t think Onebox parses the link cards either way.

> [@techAPJ](#):
>
> Will try to get it done by early next week.

Fantastic. Thanks!

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年九月20日 03:56 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/8 "2016-09-20T03:56:54Z")

</div>

This is now done:

[https://meta.discourse.org/t/facebook-opengraph-images-not-working-on-the-homepage/46086/22?u=techapj](https://meta.discourse.org/t/facebook-opengraph-images-not-working-on-the-homepage/46086/22)

Let’s continue this discussion on above linked topic.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年九月20日 03:57 UTC](https://meta.discourse.org/t/support-for-twitter-cards-with-large-images/50215/9 "2016-09-20T03:57:00Z")

</div>


