DEV Community

Discussion on: Twitter, Grifters, DevRels, and the end of everything as we know it

Collapse
hanpari profile image
Pavel Morava

So how did you do that? This is my first time seeing it.

Thread Thread
alvaromontoro profile image
Alvaro Montoro Author • Edited on

It is a web intent. The Twitter documentation describes it as a a way "to help users easily follow a Twitter account".

Using it, you can create a link/button that redirects to a Twitter account with the "Follow this account?" popup already open. The code is simple https://twitter.com/intent/follow?screen_name=[TWITTER_HANDLER]. For example, a follow intent to my Twitter account 😉😉: twitter.com/intent/user?screen_nam... or twitter.com/intent/follow?screen_n... (they both work)

Thread Thread
hanpari profile image
Pavel Morava

Thank you.