Saturday, March 18, 2017

twitter and how to tweet with an automatic iframe. Exemple of the open archive Zenodo (DOI)

You can see an example of the automatic iframe pushed by twitter in this tweet.

Summary Card

The Summary Card can be used for many kinds of web content, from blog posts and news articles, to products and restaurants. It is designed to give the reader a preview of the content before clicking through to your website.

The Tweet shows a Summary Card (photo and text).

Our system recognizes when URLs are included in a tweet, and crawls your site to fetch the Card type and content. 
To learn more about how our Card system works, read our Getting Started Guide.

In the <head> of the HTML of the URL
you must have some METADATA.
In Zenodo, for example:
<meta name="description" content="Chapitre dans Matériaux et Joints d Etanchéité pour les Hautes Pressions édité dans la collection • Intégrations des savoirs et savoir faire • -- Collection dirigée et éditée par Stéphane MOTTIN" />
    <meta name="citation_title" content="Les matériaux sidérurgiques et les hautes pressions" />
    <meta name="citation_author" content="" />
    <meta name="citation_doi" content="10.5281/zenodo.400482" />
    <meta name="citation_keywords" content="Hautes pressions" />
    <meta name="citation_keywords" content="Matériaux" />
    <meta name="citation_keywords" content="Hautes pressions - Matériaux" />
    <meta name="citation_keywords" content="Joints d étanchéité" />
    <meta name="citation_keywords" content="Matériaux - Effets des hautes pressions" />
    <meta name="citation_abstract_html_url" content="" />
    <meta name="citation_pdf_url" content="" />

Try the validor to see the visual of your tweet:

No comments:

Post a Comment