vercel / react-tweet

Embed tweets in your React application.

Home Page:https://react-tweet.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Proposal: Extend functionality to include User profile embedding

Zanzofily opened this issue · comments

The theming capabilities of this package are quite robust, and I believe it can accommodate more than just individual tweets. I propose adding the ability to embed user profiles, in addition to single tweets.

Currently, the package allows for the embedding of individual tweets using getTweet to fetch tweet data from the api then EmbeddedTweet component for rendering it.

Support for embedding user profiles can be achieved by incorporating the ${SYNDICATION_URL}/srv/timeline-profile/screen-name/${screenName} endpoint, which would provide the necessary data to render user profiles and their tweets. Should be a getProfile or getTimeline function that serves a similar purpose for getTweet. It can perform any response format changes to match Tweet type.