Tag Archives: twitter

Go Program for a Unique Twitter Profile Banner

Do you think your Twitter profile banner is boring? Do you wish there was something that could rotate your Twitter banner images? Maybe what you want is to brag about your Twitter account statistics on your profile banner to make a unique Twitter profile banner. This article showcases a Go program that does just that.

Landscape image showing clouds and grass generated by the program. Statistics: 217 Following, 68 Followers, 461 Tweets, In 0 lists, Located in London, UK, 2021-11-26 23:27 UTC, https://git.io/JMOjc
A Twitter Banner generated and uploaded by the program

Retrieve User Statistics from Twitter

We will authenticate with Twitter API using OAuth 2.0 to retrieve the statistics for the given Twitter profile. To achieve this, we need the Go oauth2 package.

You can find the code for user data in user_data.go.

Continue reading Go Program for a Unique Twitter Profile Banner

Hidden Method of Sharing Another User’s Video on Twitter

Do you hate that videos in quote tweets are smaller on Twitter? You may also want to remove the text of the tweet and share the video only. If you noticed a text “From <user>” under some posts with videos, you have seen these kinds of posts already. We can call this directly sharing a video on Twitter.

Screenshot of a Tweet directly sharing a video from BBC Archive
Tweet containing a video from BBC Archive
Continue reading Hidden Method of Sharing Another User’s Video on Twitter

Load Twitter Follow Button Asynchronously

The default Twitter Follow code, the script loads the like button synchronously. When you add the synchronous Twitter Follow button to your website, Page Speed Online will tell you to prefer asynchronous resources. When I tried to use it on a minimal HTML page score goes down by 8 points. If you are like me and want to get the best score possible in Page Speed you would want to know how to make it asynchronous.

Prefer asynchronous resources - Fetching resources asynchronously prevents those resources from blocking the page load. - Page Speed Insights
Prefer asynchronous resources message on Page Speed for Twitter Follow Button

Continue reading Load Twitter Follow Button Asynchronously