Meta tags

twitter:player

Provides the HTTPS iframe URL for an X Player Card. X has retired the detailed public tag reference, so test current rendering before depending on it.

Code examples

Good example
<meta name="twitter:player" content="https://example.com/player?video_id=12345">
An HTTPS URL to the embeddable player page.
Avoid this example
<meta name="twitter:player" content="http://example.com/player?video_id=12345">
The historical field required HTTPS.
Avoid this example
<meta name="twitter:player" content="">
An empty value provides no player URL.

Recommendations

  • 01
    Use HTTPS
    The historical Player Card requirements called for an HTTPS iframe URL.
  • 02
    Declare the Dimensions
    Add twitter:player:width and twitter:player:height with the iframe’s pixel dimensions.
  • 03
    Test the Embed
    Confirm the iframe works without cookies, plugins, or browser permissions that X cannot provide.

Related documentation

Related meta tags

Legacy Twitter App Card field for the numeric App Store ID of an iPad app. X has retired its public App Card reference.

<meta name="twitter:app:id:ipad" content="307234931">
The numeric App Store ID once used by App Cards.

Legacy Twitter App Card field for the numeric App Store ID of an iPhone app. X has retired its public App Card reference.

<meta name="twitter:app:id:iphone" content="307234931">
The numeric App Store ID for the former Twitter iPhone app.

Legacy Twitter App Card field for an Android application ID, usually the package name used by Google Play. X has retired its public App Card reference.

<meta name="twitter:app:id:googleplay" content="com.example.app">
A conventional Android application ID.

Legacy Twitter App Card field for the name of an iPad app. X has retired its public App Card reference.

<meta name="twitter:app:name:ipad" content="My Amazing App">
A plain app name that matches the store listing.

Legacy Twitter App Card field for the name of an Android app. X has retired its public App Card reference.

<meta name="twitter:app:name:googleplay" content="MyApp">
A short app name that matches the store listing.