vercel / react-tweet

Embed tweets in your React application.
https://react-tweet.vercel.app
MIT License
1.49k stars 82 forks source link

Support profile embedding #105

Closed dalkommatt closed 11 months ago

dalkommatt commented 11 months ago

ex.

<TwitterProfile profileUrl="https://twitter.com/vercel" showTweets={3} />

steven-tey commented 11 months ago

Unfortunately this would require Twitter API v2 + we want to keep this library as simple as possible so it won't be added 😅

Closing this for now, but appreciate the feature request!

dalkommatt commented 10 months ago

@steven-tey profile/timeline embedding is supported by Twitter, similarly to tweets. What is different about it that it would require the API?

Profile Embed <a class="twitter-timeline" href="https://twitter.com/vercel?ref_src=twsrc%5Etfw">Tweets by vercel</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

Tweet Embed <blockquote class="twitter-tweet"><p lang="en" dir="ltr">Learn how Vercel builds and deploys serverless applications for maximum scalability and performance.<a href="https://t.co/o7xCHGhzRW">https://t.co/o7xCHGhzRW</a></p>&mdash; Vercel (@vercel) <a href="https://twitter.com/vercel/status/1619039035590164508?ref_src=twsrc%5Etfw">January 27, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>