Early Access

Meta Tags

twitter:app:url:iphone

Learn how to use the twitter:app:url:iphone meta tag to improve your site.

Defines the deep link URL to your iOS app for Twitter. When shared, this tag directs Twitter users on an iPhone to a specific location in your iOS app instead of a web page, enhancing user experience for app users.

Code Examples

<meta name="twitter:app:url:iphone" content="twitterkit-//timeline" />
Directs users to a specific timeline within an iOS app when the tweet is accessed from an iPhone.
<meta name="twitter:app:url:iphone" content="myapp://article/123" />
Deep links to article 123 within the "myapp" iOS application, providing a seamless user journey from tweet to app content.
<meta name="twitter:app:url:iphone" content="http://example.com/article/123" />
Uses a web URL instead of a deep link, missing the opportunity for a seamless transition to the app.
<meta name="twitter:app:url:iphone" content="myapp://does/not/exist" />
Provides an incorrect deep link URL that does not correctly reference a valid location within the app, leading to a dead end or error.

Recommendations

  • Use with Twitter App ID and Name
    For optimal functionality, this tag should be used in conjunction with the "twitter:app:id:iphone" and "twitter:app:name:iphone" meta tags. This ensures users are directed to the appropriate app on their device.
  • Validate Deep Link URLs
    Ensure the deep link URL is thoroughly tested and validated. Incorrect or broken URLs can lead to a poor user experience and potentially deter users from engaging further.

Related Documentation

Related Meta Tags

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">
Directly matching the app name on the Google Play Store, ensuring accurate and effective promotion.

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">
Clearly specifies the name of the application as "My Amazing App", which is direct and memorable.

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">
Correctly specifies the Google Play Store ID, ensuring Twitter can direct users to the appropriate app page.

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">
A valid example of an App Store ID used for the Twitter iPhone app, facilitating direct app opens or installations from tweets.

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">
Specifies the App Store ID for an iPad application, directly guiding Twitter users to the app when shared.