3114253 vues

Twitter Cards

Sébastien Merour
publié le 13/06/2020 à 14h04 | modifé le 13/06/2020 à 15h44
Catégorie : Front-End | Commentaires (91307)
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.

91307 Commentaire(s)
  1. user
    craybet_cpPa
    28/10/2026 à 07h49  commentaire modifé
    I've been messing around on Craybet for like six weeks or so and wanted to share what I think because there's not much discussion about it around here. Signed up after seeing an ad and the whole process took maybe a couple minutes. Starting deposit was $10 which is normal for US-facing sites. They threw in a welcome bonus — 100% up to $500 plus fifty free spins on Sweet Bonanza. Rollover is 35 times the bonus which isn't amazing but it's manageable. Game selection is bigger than I expected. There's titles from Pragmatic Play, Evolution, plus Big Time Gaming — so like Gates of Olympus, Gonzo's Quest, the usual heavy hitters. I'd guess maybe a couple thousand titles including table games. Live dealer stuff is powered by Evolution and it's quality — played some baccarat and Crazy Time with actual croupiers and had no complaints. One thing that kinda bugged me was how long cashouts take. I used Visa and it took like a day and a half the first time. After that though things sped up. They accept credit cards, e-wallets like Skrill and Neteller, and BTC so that covers pretty much everything you'd want. I'd check out the full bonus details on CrayBet to see for yourself. Using Craybet on my phone is actually smooth. No dedicated app but the mobile site is responsive and all the games load without issues. Was playing some slots on my commute and didn't notice any problems. Support at Craybet is decent — they have live chat that actually connects pretty quick most times. I contacted them about a bonus that didn't credit and got it fixed within hours. Not sure about operating under a Curacao license and that's standard for platforms like this. Not everything is amazing — the bonus wagering could be lower — but overall I'm still using it.

  2. user
    craybet_kkPa
    28/10/2026 à 07h48  commentaire modifé
    Been messing around on Craybet for about a couple months and figured I'd share what I think since there isn't much discussion about this place in this forum. Registered after seeing an ad and signing up took maybe a couple minutes. Min deposit was ten bucks which is normal for US-facing sites. I grabbed a welcome bonus — matched my first deposit 100% up to 500 plus fifty free spins on Sweet Bonanza. Wagering was 35x and that could be lower but I've dealt with worse. Their slots catalog is decent honestly. You'll find stuff from Pragmatic Play, Evolution, and Play'n GO — meaning Gates of Olympus, Gonzo's Quest, that kind of thing. Probably close to 2000 games total if you count everything. The live dealer section is powered by Evolution which is smooth — tried baccarat and Crazy Time with real dealers and had no complaints. Tbh the thing that annoyed me a little was payout speed. Tried cashing out with Bitcoin and waited like a day and a half the first time. Second time around things sped up. They accept credit cards, Skrill, Neteller, and BTC which covers pretty much everything you'd want. You can check out the full bonus details on svnewtech if you're interested. Using Craybet from my iPhone was surprisingly good. There's no app to download — the browser version runs well and everything works fine. Was playing a few sessions in bed and no performance issues. Customer service on Craybet has been okay — there's a chat widget that actually connects in under five minutes when I've used it. Reached out once about my verification docs and they sorted it pretty quickly. Not sure about Curacao licensed and that's standard for offshore casinos. Not everything is amazing — the bonus wagering could be lower — but as a daily player I keep coming back.

  3. user
    Vincentbug
    28/10/2026 à 07h46  commentaire modifé
    Honest take is that this was better than I expected when I clicked through, and a look at cloudpetalmarket reinforced that, the bar for online content has dropped so much that finding something thoughtful and well constructed feels almost noteworthy now which says more about the average than about this site itself.

  4. user
    craybet_tnPa
    28/10/2026 à 07h44  commentaire modifé
    Been messing around on Craybet for like two months now and thought I'd throw out my experience since there isn't a ton of talk about it in this forum. Signed up randomly one night and the whole process literally took 90 seconds. Starting deposit was ten bucks which is normal for US-facing sites. They threw in a sign-up bonus — matched my first deposit 100% up to 500 plus 50 free spins on Sweet Bonanza. Rollover is 35 times the bonus which is kinda average but I've dealt with worse. Game selection is bigger than I expected. There's stuff from Pragmatic Play, Betsoft, and Big Time Gaming — meaning Gates of Olympus, Starburst, all the popular ones. I'd guess maybe 1500-2000 slots including table games. The live dealer section runs on Evolution and it's smooth — played some roulette and Lightning Roulette with real dealers and zero lag issues. Now the one thing I wasn't thrilled about was payout speed. I used Bitcoin and it took like a day and a half for my first withdrawal. After that though it was faster. Payment options include Visa, Mastercard, Skrill, Neteller, and BTC which is most bases. You can check out their current offers at https://svnewtech.com before you sign up. Using Craybet on my phone was surprisingly good. I didn't find a native app but the mobile site is responsive and all the games load no problem. I played Book of Dead on my commute and no lag or glitches. Support at Craybet is okay — there's a chat widget that gets you a person within a few minutes when I've used it. Reached out once about my verification docs and they sorted it same day. I think they're operating under a Curacao license and that's typical of US-friendly sites. It's not flawless — the bonus wagering could be lower — but as a daily player I keep coming back.

  5. user
    schlüsseldienst worms
    28/10/2026 à 07h04  commentaire modifé

Ajoutez un commentaire :