Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/autonome/twitter-inline-oembed. Easily inline Twitter embeds
Something went wrong. Try again.
twitter-inline-oembed index.html
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Twitter Inline Oembeds</title>
<!-- Update your html tag to include the itemscope and itemtype attributes. --> <!--<html itemscope itemtype="http://schema.org/Webpage">-->
<!-- Place this data between the <head> tags of your website --> <title>Twitter Inline Oembed</title> <meta name="description" content="Easily embed Tweets inline in your web pages." />
<!-- Schema.org markup (Google) --> <meta itemprop="name" content="Twitter Inline Oembed"> <meta itemprop="description" content="Easily embed Tweets inline in your web pages."> <meta itemprop="image" content="https://i.imgur.com/eTYcPJZ.png">
<!-- Twitter Card markup--> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@dietrich"> <meta name="twitter:title" content="Twitter Inline Oembed"> <meta name="twitter:description" content="Easily embed Tweets inline in your web pages."> <meta name="twitter:creator" content="@dietrich"> <!-- Twitter summary card with large image must be at least 280x150px --> <meta name="twitter:image" content="https://i.imgur.com/eTYcPJZ.png"> <meta name="twitter:image:alt" content="Easily embed Tweets inline in your web pages.">
<!-- Open Graph markup (Facebook, Pinterest) --> <meta property="og:title" content="Twitter Inline Oembed" /> <meta property="og:type" content="article" /> <meta property="og:url" content="https://autonome.github.io/twitter-inline-oembed/" /> <meta property="og:image" content="https://i.imgur.com/eTYcPJZ.png" /> <meta property="og:description" content="Easily embed Tweets inline in your web pages." /> <meta property="og:site_name" content="Twitter Inline Oembed" />
<style type="text/css"> body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; } </style></head><body>
<h1>Twitter Inline Oembeds</h1><h2>Easily embed Tweets inline in your web pages</h2>
<p>NOTE: Twitter embedded content doesn't render at all if you're running tracking blockers.</p>
<p>Code and docs: <a href="https://github.com/autonome/twitter-inline-oembed">https://github.com/autonome/twitter-inline-oembed</a>
<h2>Usage</h2>
<p>1. Add oembed.js to your project</p>
<blockquote><pre><code>npm install twitter-inline-oembed</code></pre></blockquote>
<p>2. Use the following format anywhere you want a Tweet embedded</p>
<blockquote><pre><code><script src="/path/to/oembed.js?tweet=https://twitter.com/dietrich/status/834597640411152384"></script></code></pre></blockquote>
The Tweet will be embedded in your page, right where you put the <code><script></code> tag.
<h2>Example: Text Tweet</h2><script defer src="oembed.js?tweet=https://twitter.com/dietrich/status/834085207502422021"></script>
<h2>Example: Image Tweet</h2><script defer src="oembed.js?tweet=https://twitter.com/dietrich/status/834597640411152384"></script>
<h2>Example: Video Tweet</h2><script defer src="oembed.js?tweet=https://twitter.com/dietrich/status/792380133814444032"></script>
</body></html>