Early Access
twitter:image
Learn how to use the twitter:image meta tag to improve your site.
Defines the image to be used when the webpage is shared on Twitter. It influences the visual representation of shared content, enhancing user engagement.
Code Examples
<meta name="twitter:image" content="https://example.com/path/to/image.jpg" />
<meta name="twitter:image" content="/path/to/image.jpg" />
<meta name="twitter:image" content="https://example.com/path/to/large-image.jpg" />
Recommendations
- Optimize Image SizeTwitter recommends using images with a minimum size of 120x120 pixels, but for optimal display, aim for 280x150 pixels to avoid cropping.
- Use Absolute URLsAlways specify the image URL as an absolute path rather than a relative path to ensure it is correctly displayed when the web page is shared.
- Prioritize High-Quality ImagesSelect high-quality images that are visually appealing and relevant to the content. Low-quality images can negatively affect user engagement and shareability.
- Ensure Fast LoadingOptimize the image for fast loading without compromising quality. Slow-loading images can be skipped by Twitter’s crawler, leading to a missed opportunity for visual engagement.
Related Documentation
Related Meta Tags
Defines the numeric ID of your iPad application in the Apple App Store, enabling Twitter to link to it when your content is shared.
<meta name="twitter:app:id:ipad" content="307234931">
Defines the iPhone app ID in the Apple App Store for deep linking from tweets. This is part of Twitter Cards used to enhance tweets with rich media to direct users to web content directly or through an app.
<meta name="twitter:app:id:iphone" content="307234931">
Specifies the unique application ID for a Google Play app, used within Twitter Cards to direct users to a specific Android app.
<meta name="twitter:app:id:googleplay" content="com.example.app">
Specifies the name of your application tailored for iPad users when sharing content on Twitter.
<meta name="twitter:app:name:ipad" content="My Amazing App">
Specifies the name of your Android app on the Google Play Store. This is utilized in Twitter Cards when you want to promote a mobile application directly from a tweet.
<meta name="twitter:app:name:googleplay" content="MyApp">
Community