1941390 vues

Twitter Cards

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

8271 Commentaire(s)
  1. user
    888starz_zsol
    27/07/2026 à 09h43  commentaire modifé
    Na 888starz siedze chyba z pare miesiecy i stwierdzilem, ze rzuce tu pare slow. Szczerze mowiac — dorwalem link na jakims forum i zostalem na dluzej. Jako gracz z Polski nie ma zbyt wielu sensownych opcji, wiec cos takiego od razu sprawdzam dokladnie. Przede wszystkim krece sloty i tego dobra jest tu naprawde sporo. Spokojnie ponad dwa tysiace tytulow, od Pragmatic Play po NetEnt, Play'n GO oraz Yggdrasil. Standardowe Gates of Olympus i Book of Dead masz bez szukania, ale szczerze najczesciej siedze na paru swoich ulubiencow. Grafika dziala gladko na mobilce. Jak ktos woli prawdziwego krupiera — sa stoly od Evolution, na realnych ludziach, do tego rozne game show typu Crazy Time. Wciaga bardziej niz myslalem. Co do kasy — robilem Visa i Skrill, obsluguje tez Bitcoinem. Pierwszy cashout dostalem w niecale pol dnia, Skrillem sa najszybsze. Warto zerknac na aktualne kody i promki u 888starz no deposit bonus przed rejestracja, bo to sie rusza. Bonus na start wyglada przyzwoicie — jest do 1500 euro oraz jakies 150 zakrecen. Ruch to okolo x40, i to szczerze w normie, ale jak zawsze czlowiek musi ogarnac zasady. Minimalny depozyt niewielki, zapis zajela mi jakies pare minut. Appka dziala i jest znosna, instalka poza sklepem ze strony. Zeby nie bylo za rozowo — support czasem mieli wolno, zwlaszcza pod obciazeniem. KYC delikatnie zmeczyla, choc to chyba przy licencji to norma. Ogolnie — 888starz mi pasuje, opinie w sieci sa rozne, dlatego wyrob sobie wlasne, zanim wrzucisz kase.

  2. user
    888starz_xfEi
    27/07/2026 à 09h41  commentaire modifé
    Na 888starz siedze raczej jakies kilka tygodni i stwierdzilem, ze rzuce tu pare slow. Nie ma co owijac w bawelne — dorwalem link na jakims forum i nie zaluje. Jako gracz z Polski ciezko o sensownych opcji, wiec cos takiego od razu testuje na spokojnie. Przede wszystkim krece sloty i tego dobra jest tu naprawde sporo. Liczylem grubo ponad dwa tys. tytulow, od Pragmatic Play przez NetEnt, Play'n GO czy Yggdrasil. Klasyki typu Sweet Bonanza oraz Book of Dead masz na wyciagniecie reki, ale szczerze zwykle siedze na jednego czy dwoch ulubiencow. Grafika dziala gladko tez na kompie. Dla tych co lubia prawdziwego krupiera — obsluguje to Evolution, z prawdziwymi krupierami, a jeszcze rozne game show typu Crazy Time. Zjada czas bardziej niz myslalem. Co do kasy — robilem karte i Neteller, mozna rowniez Mastercard. Pierwsza wyplate mialem na koncie w jakies 24h, e-portfele sa najszybsze. Jesli komus zalezy na aktualne kody i promki na 888starz play zanim sie zapiszesz, bo sie zmieniaja. Powitalny wyglada solidnie — jest spory procent od wplaty plus paczke zakrecen. Ruch to x40, co szczerze jest standardem, ale jak wszedzie czlowiek musi ogarnac zasady. Minimalny depozyt jest niski, rejestracja poszla w jakies pare minut. Appka dziala i chodzi ok, instalka poza sklepem z ich stronki. Nie wszystko jest idealne — obsluga bywa ze kaze czekac, szczegolnie pod obciazeniem. Weryfikacja konta delikatnie wkurzyla, ale rozumiem, ze przy licencji inaczej sie nie da. Ogolnie — 888starz mi pasuje, zdania w sieci sa rozne, dlatego sprawdz sam, zanim wrzucisz kase.

  3. user
    888starz_jdol
    27/07/2026 à 09h37  commentaire modifé
    Gram na 888starz chyba z kilka miesiecy i tak sobie pomyslalem, ze rzuce tu pare slow. Tak z reka na sercu — dorwalem link na jakims forum i jakos zostalem. U nas w Polsce nie ma zbyt wielu sensownych opcji, wiec kazde takie zawsze sprawdzam dokladnie. Przede wszystkim krece sloty i jest w czym wybierac. Spokojnie ponad trzy tys. automatow, od Pragmatic Play po NetEnt, Play'n GO czy Yggdrasil. Standardowe Gates of Olympus oraz Book of Dead masz od reki, ale prawde mowiac zwykle wracam do jednego czy dwoch tytulow. Plynnosc nie tnie na mobilce. Jesli wolisz klimat kasyna na zywo — jest sekcja od Evolution, na realnych ludziach, plus rozne game show w stylu Crazy Time. Potrafi wciagnac bardziej niz myslalem. Jesli chodzi o forse — wrzucalem przez BLIK-a i crypto, mozna rowniez Mastercard. Pierwszy raz mialem na koncie w niecale 24h, Skrillem ida najszybciej. Jesli komus zalezy na swieze oferty zaraz na 888starz. przed rejestracja, bo to sie rusza. Bonus na start wyglada przyzwoicie — jest do 1500 euro i do tego jakies 150 darmowych spinow. Obrot to x40, i to szczerze nie jest tragedia, ale jak zawsze warto doczytac regulamin. Minimalny depozyt to grosze, rejestracja trwala jakies dwie minuty. Apka mobilna istnieje i chodzi ok, apk z ich stronki. Nie wszystko jest idealne — czat bywa ze odpisuje z opoznieniem, zwlaszcza pod obciazeniem. KYC tez mnie zmeczyla, choc to chyba kwestia regulacji tak musi byc. Tak po calosci — zostaje na razie, zdania w sieci sa rozne, wiec sprawdz sam, na malych stawkach.

  4. user
    KentReara
    27/07/2026 à 08h44  commentaire modifé
    Polished and informative without feeling overproduced, that is the sweet spot, and a look at securebusinessrelationships hit it again, you can tell when a site has been built with care versus thrown together for the sake of having something to put online and this is clearly the former approach taken by the team.

  5. user
    Vegazone-au
    27/07/2026 à 06h34  commentaire modifé
    Over the past few weeks I've asked myself whether or not it's truly feasible to play mobile slots without constant hiccups on an old piece of hardware, given that the vast majority of current gaming platforms seem to be built primarily for the latest phones in mind. It's honestly been a recurring question whenever I open one of these sites, given that a huge chunk of players can afford a brand-new handset, and yet the assumption in these platforms tends to be that hardware isn't a limitation. With that question nagging at me, I tried it out firsthand on https://aquavitae.bar/, partly because it came up somewhere that the platform performed decently even on older devices. Going in, I didn't expect much, but, it performed a lot better than I thought it would, considering that my phone is a few generations old and by no stretch a flagship — the kind of thing most tech sites wouldn't recommend testing for anything demanding. Following several days of testing, I found that loading it through the default browser in place of a standalone app resulted in considerably fewer crashes, and this made sense, since installed software generally eat up additional RAM without you noticing. Scaling down the visual settings where possible also noticeably eased the load, particularly on slower processors that struggle under constant visual effects. Additionally, clearing unused processes before opening a session seemed to free up just enough breathing room to keep things running smoothly. Another thing I picked up on that a stable internet connection made a bigger difference than I initially assumed, because even a reasonably modern phone, a spotty signal tends to produce buffering. Keeping unnecessary apps running simultaneously while gaming seemed to drag performance down, meaning closing them first turns out to be an easy fix which pays off. If you is dealing with the same issue, the link is https://aquavitae.bar/ — performed better than expected even on my hand-me-down phone, and there's a good chance it's worth checking regardless of whether your setup is nowhere near state of the art. Overall, the takeaway is that solid playability on older hardware comes down to a handful of small habits instead of needing an expensive phone from the outset.

Ajoutez un commentaire :