Meta tags
twitter:site:id
Attributes the website or publication to an X account using its numeric user ID. Use twitter:site when you know the @handle.
Code examples
Good example
<meta name="twitter:site:id" content="123456789">A numeric X user ID.
Avoid this example
<meta name="twitter:site:id" content="@YourTwitterHandle">A handle belongs in twitter:site.
Avoid this example
<meta name="twitter:site:id" content="">An empty value identifies no account. Omit the optional field instead.
Recommendations
- 01Use the Numeric IDX user IDs are stable numeric strings. Do not put a handle in this field.
- 02Use site for HandlesThe @ prefix and username belong in twitter:site, not in this numeric ID field.
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.