Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed a tweet on a page if I only know it's ID?

Given a simple ID like: 807811447862468608

How can I embed it on my page?

I've looked at other questions on StackOverflow but they require the entire tweet HTML to be present. I'm just trying to save the reference to the tweet and let the widget pick up on it.

like image 266
Sergio Tapia Avatar asked Dec 05 '22 16:12

Sergio Tapia


1 Answers

Simply use this tagging

<blockquote class="twitter-tweet">
  <a href="https://twitter.com/x/status/807811447862468608"></a> 
</blockquote>

and load the twitter widget script

<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 

and the tweets will be embedded in your page

like image 113
Pedro Avatar answered Dec 30 '22 03:12

Pedro