tweet_embed | R Documentation |
Twitter API GET call to retieve the tweet in embedded form.
tweet_embed(screen_name, status_id, ...)
screen_name |
character, screen name of the user |
status_id |
character, status id |
... |
parameters to pass to the GET call. See https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed for details. |
character
httr::GET()
,httr::content()
name <- 'kearneymw'
status <- '1087047171306856451'
tweet_embed(screen_name = name, status_id = status)
tweet_embed(
screen_name = name,
status_id = status,
hide_thread = TRUE,
hide_media = FALSE,
align = 'center'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.