3114333 vues

Twitter Cards

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

91310 Commentaire(s)
  1. user
    schlüsseldienst
    28/10/2026 à 08h05  commentaire modifé

  2. user
    binary options 617
    28/10/2026 à 08h02  commentaire modifé
    Learn the methods binary options withdrawal to nigerian bank account. Study market signals, compare trading platforms, and discover the specifics of trading and the risks associated with it.

  3. user
    craybet_zcPa
    28/10/2026 à 07h55  commentaire modifé
    So I've been playing on Craybet for about two months now and thought I'd throw out what I think since there isn't many posts about it in this forum. I signed up on a whim and the whole process literally took two minutes. Minimum deposit is $10 and that's pretty standard. I grabbed a welcome bonus — 100% up to $500 and fifty free spins on Sweet Bonanza. Wagering was 35 times the bonus which could be lower but I've dealt with worse. Game selection is honestly pretty solid. There's titles from Pragmatic Play, Evolution, plus Big Time Gaming — so like Gates of Olympus, Starburst, that kind of thing. Somewhere around 2000 games when you add it all up. The live dealer section uses Evolution which is quality — tried blackjack and Crazy Time with actual croupiers and it worked great. Now the one thing that annoyed me a little was withdrawal times. Tried cashing out with Bitcoin and waited almost two days for my first withdrawal. After that though it was faster. They accept credit cards, e-wallets like Skrill and Neteller, and crypto which is most bases. I'd check out what they've got going on on CrayBet before you sign up. Mobile experience on Craybet from my iPhone worked better than expected. There's no app to download — the mobile site is responsive and slots and live games work without issues. I played a few sessions on the bus and had zero problems. Customer service on Craybet is okay — there's a chat widget that actually connects in under five minutes usually. I contacted them about a pending withdrawal and they sorted it same day. Not sure about Curacao licensed and that's what most US-friendly sites. It's not flawless — promo codes seem rare — but for what it is I keep coming back.

  4. 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.

  5. 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.

Ajoutez un commentaire :