question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Twitter integration

See original GitHub issue

With the most recent example being #3864, our current Twitter-embedding solution of gatsby-remark-embedder+gatsby-plugin-twitter has some downsides:

  • Builds break if a tweet is deleted or protected, and they persist unstyled in cache image
  • Loads a whole extra external JS embed bundle from Twitter
  • Just looks kinda ugly

(it might just be me, but it really just dumps text like if you copy-pasted it while adding a couple links in. We’re downloading a library for this?)

image

As far as an alternative implementation, I can think of two main routes off the top of my head:

Use a custom component with pasted content

Pros:

  • simplest implementation code-wise
  • doesn’t break regardless of what happens to the tweet
  • pretty easy to do overall
  • Would need a custom component to add boilerplate that keeps us in line with Twitter’s Tweet display guidelines

Cons:

  • doesn’t update if tweet changes, is updated, or deleted.
  • Slightly more difficult on editors than other options

gatsby-source-twitter

Pros:

  • can maintain the slightly easier workflow of pasting a link instead of pasting a tweet
  • can be heavily customized
  • (can be) fully static

Cons:

  • a significant amount of dev work that could balloon depending on requirements

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shchekleincommented, Aug 24, 2022

Closing for now, we can come back to it later.

1reaction
shchekleincommented, Aug 24, 2022

I would go with deleting them for now for simplicity. Let’s not spend time on building our own stuff here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't Like Twitter's Algorithm-Defined Feed? Here's How You ...
Like Facebook's News Feed algorithm, Twitter's algorithm learns from your on-platform behavior, from the tweets you're engaging with, but you ...
Read more >
How the Twitter Algorithm Works in 2023 - Hootsuite Blog
A boost in engagement can help your Tweet's ranking with the Twitter algorithm. And it's well known that Tweets with photos, videos, and...
Read more >
5 Strategies to Amplify Your Twitter Engagement | Sprout Social
5 strategies to amplify your Twitter engagement · 1. Massive audience base · 2. Builds exposure · 3. Boosts brand-consumer connection · 4....
Read more >
21 Simple Ways to Immediately Improve Your Twitter Account
1. Twitter handle. · 2. Twitter bio. · 3. Logo and cover image. · 4. Promote others. · 5. Retweet and reply. ·...
Read more >
11 Excellent Twitter Improvement Ideas - WebFX
Check out what these 10 professionals have to say about improving Twitter! Read their different improvement ideas for the social media platform here!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found