I just saw that twitter can also preview the products as it is on below Tweet:


In this case, it is an Amazon product.

I was wondering how we can enable this for our website? Do we have control over this or Twitter chooses web sites for this feature which they want?


It isn't possible yet since what you want to do is exactly what Twitter Cards will soon provide:

enter image description here

It isn't available for every one at the moment but will be available in the future. Right now, you can anticipate the release of Twitter Cards by adding some meta to your html like:

<meta name="twitter:card" content="summary">
<meta name="twitter:description content="Hotel description">
<meta name="twitter:title" content="My Hotel">
<meta name="twitter:image" content="http://myhotel.com/photo_thumbnail.png">
<meta name="twitter:url" content="http://myhotel.com">

And then wait for the availability.


The word for what they are doing is transclusion. The method they are using is OEmbed (details here). According to twitter though

Sorry, we're not offering a path to inclusion at this time.

Inclusion means inclusion on a whitelist of OEmbed providers.

What gets shown below the tweet depends on the other website - it could be a picture, or "media" which varies. For example, Foursquare show a map; as you've mentioned, Amazon shows selected parts of the page.


This is determined by Twitter, presumably using whatever services/sites they see as most popular or desirable. Also note that the services previewed are referred to as "partnerships," so it seems likely there's actually a formal relationship involved and not just some metadata on your end, for example. The feature was mentioned in an early blog post around the launch of "NewTwitter" and another in which they announced the addition of a bunch more services.


What CMS are you using? I know it also works with WordPress, even if your not hosted on WordPress.org or .com, but I've had mixed results, such as, if you post different blog entries, all of the links will preview your most recent post.

Do you just want to preview your site or media as well? Because Twitter has partnerships with YouTube etc.

  • What I want is to view some metadata info about the Hotel and the small main picture of the hotel when someone tweets by linking the hotel's web page url.
    – tugberk
    Jul 27 '12 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.