1951832 vues

Twitter Cards

Sébastien Merour
publié le 13/06/2020 à 14h04 | modifé le 13/06/2020 à 15h44
Catégorie : Front-EndCommentaires (8461)
Twitter Cards
Description

Par le terme de "Twitter Cards", on entend 2 choses :

-les cards "Twitter" permettant d'afficher un tweet sur Twitter

-les balises "Twitter Cards" insérées dans les balises meta d'un site web, afin que Twitter puisse afficher un tweet correctement

Les Cards "Twitter"

Vous l'aurez remarqué : lorsque vous consultez Twitter, les tweets ne s'affichent pas tous de la même façon. Certains sont de simples textes (phrases courtes...), alors que d'autres tweets sont enrichis de photos, de vidéos...

Concernant les tweets enrichis, on distingue 2 catégories :

-le tweet enrichi depuis Twitter : l'utilisateur poste un tweet en y ajoutant une photo, ou une vidéo. Dans ce type de cas, le tweet ne fait appel à aucun site web extérieur. L'utilisateur insére des photos ou des vidéos qui sont présents sur son device (mobile, PC...)

-le tweet enrichi grâce à un site tiers : dans ce cas, lorsque l'utilisateur poste un lien menant à un site web (par exemple un lien vers un article de presse), Twitter insère automatiquement des éléments pour enrichir le tweet (le plus souvent il s'agit par exemple d'un aperçu photo d'un article de presse posté sur un site web. C'est dans ce cas de figure qu'interviennent les balises meta "Twitter Cards".

Plusieurs types de Twitter Cards existent :

- Summary Card : elle affiche un aperçu du site web de référence. L'aperçu contient le titre ou bien une description du document. On y voit aussi une vignette d'aperçu.

- Summary Card avec image large : c'est la même chose, mais cette fois avec une photo bien plus large qui occupe toute la largeur du fil Twitter.

- Photo Card : La Card ne contient qu'une photo. Le contenu standard du tweet intégre également l'auteur, la source et un lien externe.

- Gallery Card.  Seule différence avec la Photo Card : cette fois, plusieurs photos sont affichées.

- App Card. Elle permet d'afficher une application Android ou iOS. La card contient une courte description (celle présente dans l'App Store), ainsi qu'un lien de téléchargement de l'application.

- Player Card. Comme on peu le deviner, ce type de Card affiche des vidéos ou des fichiers audio.

- Product Card. Elle est destinée à ceux voulant faire la promotion d'un produit. Elle affiche un produit avec 2 caractéristiques définies par l'utilisateur. Il peut s'agir de la catégorie du produit, du prix...

 

Les balises meta "Twitter Cards"

Afin d'afficher correctement des Twitter Cards sur Twitter, il est nécessaire d'ajouter des balises meta Twitter Cards sur le site de référence.

3 balises sont obligatoires :

 

La 1ère balise, "twitter:card" correspond à la description courte du site web

Les 2 autres "twitter:site" et "twitter:creator" correspondent au compte Twitter de l'utilisateur.

A noter : si le site web contient les balises Open Graph suivantes : og:type ; og:title ; og:description sont présentes et si la balise twitter:card est absente, alors le summary sera quand même affiché sur Twitter. Lorsque Twitter crawle le site web, il vérifie si des balises Open Graph sont présentes.

Voici quelques exemples de balises Twitter :

twitter:description

Cette balise doit contenir la description de l'article. Elle ne doit pas dépasser 200 caractères.

twitter:title

Comme son nom l'indique, celle-ci contient le titre. Limitée à 70 caractères.

twitter:image

URL de l'image à insérer dans la card. A noter : l'image doit faire moins de 5 Mo. Les formats supportés sont : JPG, PNG, WEBP et GIF. Dans le cas d'un GIF, seule la première frame est affichée. Le format SVG n'est pas supporté.

twitter:image:alt

Description de l'image. Maximum autorisé : 420 caractères.

twitter:player

URL du player vidéo ou audio.

twitter:player:width

Largeur en pixels du player.

twitter:player:height

Hauteur en pixels du player

A quoi ça sert ?

Les Twitter Cards ont un intérêt évident : plus le tweet est enrichi (présence d'une description, d'une vignette, d'une vidéo...), plus le lien aura des chances d'être cliqué, et ainsi il permettra de générer du traffic sur le site web. Attention cependant : certains éléments comme les vidéos, ne vont pas forcément générer du traffic, car dans le cas des vidéos, l'utilisateur peut se contenter de visionner intégralement la vidéo sur Twitter sans visiter le site web.

Fonctionnalités
SEO / Réseaux Sociaux
Créateur
Twitter
Liens
Aux dernières nouvelles
Rien à signaler.

8461 Commentaire(s)
  1. user
    Pomosh v polychenii grajdanstva Izrailya_jnsa
    23/07/2026 à 12h11  commentaire modifé
    Слушайте, кто реально хочет получить гражданство Израиля? То нотариальные переводы документов оформлены неправильно, Друзья у меня уже полгода мучаются с запросами до тех пор, не наткнулся на юристов, которые реально помогают на каждом этапе, включая детальную подготовку к прохождению собеседования с нативом. Через 2 месяца успешно получили внутренние паспорта. Кому тоже актуально оформить все документы быстро и легально, вся полезная инфа выложена вот здесь центр репатриации шалом центр репатриации шалом Лучше сразу доверьтесь опытным профессионалам в этой сфере, обязательно перешлите этот пост тому, кто тоже сейчас серьезно думает о репатриации!

  2. user
    Pomosh v polychenii grajdanstva Izrailya_mcOl
    23/07/2026 à 12h10  commentaire modifé
    Народ кто задумывается о переезде Вечно то справок не хватает А кто-то вообще не знает с чего начать Короче, единственные кто реально помогает — израильское гражданство в москве с консультацией Подали в консульство без ошибок В общем, смотрите сами по ссылке — репатриация в израиль гражданство израиля репатриация в израиль гражданство израиля Доверьтесь профессионалам Перешлите тому кто думает о репатриации

  3. user
    true_zgmn
    23/07/2026 à 12h09  commentaire modifé
    Signed up and been playing at true fortune casino for a good few months, and tbh it's grown on me. As a UK player so I always look at the deposit options, and that side of things has been fine. Where they don't skimp is the games — there's honestly massive, reckon it's 2,000 titles last I looked. They've got Pragmatic Play, NetEnt, NetEnt, Yggdrasil and Big Time Gaming on the roster. I tend to stick to Gates of Olympus and Sweet Bonanza, but the filtering is a bit clunky if I'm honest. For live casino fans, Evolution handle the live dealers — proper croupiers, roulette and blackjack and Crazy Time and the other game shows if that's your thing. On the bonus side, the sign-up package was pretty generous — a match on your first deposit plus a chunk of free spins. Do read the wagering first, I think it was 35x which is standard-ish but adds up. They run no-deposit chips now and then, so you can check the current codes at truefortune no deposit bonus rather than taking the first thing you see. Min deposit is low, think it was a tenner, so you're not risking much to try it out. Cashouts are the bit I care about most. I've used Mastercard and Neteller, there's also crypto and Bitcoin if you prefer. Skrill withdrawals cleared within a day or two, though there's the usual pending period. The one thing that annoyed me — the KYC docs bounced once before it went through. On the phone it just works in the browser — no separate app but you don't really need one, loads quick on my Android. The support team were okay when I pinged them, answered within a few minutes. Licensing checks out, which put my mind at ease. Not perfect, but I keep coming back so that says something.

  4. user
    true_txmn
    23/07/2026 à 12h05  commentaire modifé
    I've been using true fortune casino for the best part of a year, so figured I'd drop my two cents. Playing from the UK so I always look at payments and licensing, and that side of things has been fine. The game library is honestly massive, I'd guess around a couple of thousand titles last I looked. They've got the big names — Pragmatic Play, Play'n GO, Play'n GO, Betsoft and Microgaming all in there. My go-to slots are Sweet Bonanza and Book of Dead, but finding a specific slot takes a minute. If you're into live stuff, it's Evolution powering the live rooms — real croupiers, blackjack, roulette and Crazy Time and the other game shows which I get sucked into more than I should. As far as offers go, the sign-up package was pretty generous — a deposit match plus a chunk of free spins. Do check the wagering first, it's the standard 35x sort of range which is standard-ish but adds up. Existing players get reload codes as well, so you can check the current codes at true fortune sign up bonus if you're chasing a freebie. You can start with a tenner, about ?10 I think, so you're not risking much to try it out. Withdrawals have been where they've mostly delivered. Payments-wise I stick to Skrill and the odd card deposit, and they take crypto and Bitcoin if you prefer. The money hit my wallet in about 48 hours, though card ones dragged a bit. The one thing that annoyed me — verification took a couple of goes before it went through. On the phone it just works in the browser — there's no dedicated app, it's browser-based, loads quick on my iPhone. Live chat has been decent, answered within a few minutes. Licensing checks out, which put my mind at ease. Won't pretend it's the best thing ever, but I keep coming back so that says something.

  5. user
    LawsonSlags
    23/07/2026 à 12h02  commentaire modifé
    Thanks for putting this online without locking it behind email signups or paywalls, and a quick visit to northwildtrading kept that open feel going, content that trusts the reader to come back rather than gating access is the kind of approach I will reward with regular return visits over time happily.

Ajoutez un commentaire :