Get started with the Twitter connector

With the Twitter connector you can:

  • Post tweets and get tweets
  • Access timelines, friends, and followers
  • Perform any of the other actions and triggers described in this article

To use any connector, you first need to create a logic app. You can get started by creating a logic app now.

Connect to Twitter

Before your logic app can access any service, you first need to create a connection to the service. A connection provides connectivity between a logic app and another service.

Create a connection to Twitter


  • A Twitter account

Before you can use your Twitter account in a logic app, you must authorize the logic app to connect to your Twitter account. Fortunately, you can do this easily from within your logic app on the Azure Portal.

Here are the steps to authorize your logic app to connect to your Twitter account:

  1. To create a connection to Twitter, in the logic app designer, select Show Microsoft managed APIs in the drop down list then enter Twitter in the search box. Select the trigger or action you'll like to use:
    Twitter connection image 0
  2. If you haven't created any connections to Twitter before, you'll get prompted to provide your Twitter credentials. These credentials will be used to authorize your logic app to connect to, and access your Twitter account's data:
    Twitter connection image 1
  3. Provide your Twitter user name and password to authorize your logic app:
    Twitter connection image 2
  4. Confirm your authorization:
    Twitter connection image 3
  5. Notice the connection has been created and you are now free to proceed with the other steps in your logic app:
    Twitter connection image 4

Use a Twitter trigger

A trigger is an event that can be used to start the workflow defined in a logic app. Learn more about triggers.

In this example, you use the When a new tweet is posted trigger to search for #Seattle. And if #Seattle is found, update a file in Dropbox with the text from the tweet. In an enterprise example, you could search for the name of your company and update a SQL database with the text from the tweet.

  1. Enter twitter in the search box on the logic apps designer then select the Twitter - When a new tweet is posted trigger
    Twitter trigger image 1
  2. Enter #Seattle in the Search Text control
    Twitter trigger image 2

At this point, your logic app has been configured with a trigger that will begin a run of the other triggers and actions in the workflow.


For a logic app to be functional, it must contain at least one trigger and one action. Use the steps in the next section to add an action.

Add a condition

We are only interested in tweets from users with more than 50 users. So, a condition that confirms the number of followers is added to the logic app first.

  1. Select + New step to add the action you would like to take when #Seattle is found in a new tweet
    Twitter action image 1
  2. Select the Add a condition link.
    Twitter condition image 1
    This opens the Condition control where you can check conditions such as is equal to, is less than, is greater than, contains, etc.
    Twitter condition image 2
  3. Select the Choose a value control. In this control, you can select one or more of the properties from any previous actions or triggers. The condition of this property value is evaluated to true or false. Twitter condition image 3
  4. Select the ... to expand the list of properties so you can see all the properties that are available.
    Twitter condition image 4
  5. Select the Followers count property.
    Twitter condition image 5
  6. Notice the Followers count property is now in the value control.
    Twitter condition image 6
  7. Select is greater than from the operators list.
    Twitter condition image 7
  8. Enter 50 as the operand for the is greater than operator.
    The condition is now added. Save your work using the Save link on the menu.
    Twitter condition image 8

Use a Twitter action

An action is an operation carried out by the workflow defined in a logic app. Learn more about actions.

Now that there's a trigger, add an action that posts a new tweet with the contents of the tweets found by the trigger. For this walk-through, only tweets from users with more than 50 followers are posted.

In the next step, add a Twitter action that posts a tweet using some of the properties of each tweet that is posted by a user with more than 50 followers.

  1. Select Add an action. This step opens the search control where you can search for other actions and triggers.
    Twitter condition image 9
  2. Enter twitter into the search box then select the Twitter - Post a tweet action. This step opens the Post a tweet control where you enter all details for the tweet being posted.
    Twitter action image 1-5
  3. Select the Tweet text control. All outputs from previous actions and triggers in the logic app are now visible. You can select any of these outputs, and use them as part of the tweet text of the new tweet.
    Twitter action image 2
  4. Select User name
  5. Immediately after User name, enter says: in the tweet text control.
  6. Select Tweet text.
    Twitter action image 3
  7. To activate your workflow, save your work, and send a tweet with the #Seattle hashtag.

Connector-specific details

View any triggers and actions defined in the swagger, and also see any limits in the connector details.

Next steps

Create a logic app