Web Intent

Follow Button Web Intent

Web Intents display Twitter actions optimized for display in a small browser window. A website may link to a follow web intent through a simple link on any website. Twitter for Websites JavaScript widgets use the follow web intent to prompt viewers to follow an account.

A follow Web Intent window features an inline login form for logged-out Twitter users.

Screenshot of a Twitter.com follow intent window displayed to a logged-out Twitter user

The user will follow the account on successful login through the inline follow web intent login form. The follow status is confirmed by the “Following” button displayed in the web intent window.

follow Web Intent logged in followed

We recommend rendering a Web Intent child window dimensions of at least 550 pixels wide and 420 pixels high.

Web Intent URL


Query parameters

A follow Web Intent must reference a Twitter account by screen_name or user_id. A screen_name may change; we recommend using user_id whenever possible.

Parameter Description Example value
screen_name The Twitter username of the account you would like the viewer to follow twitterdev
user_id The Twitter user identifier of the account you would like the viewer to follow 2244994945