You are currently viewing PowerApps Twitter Connector full tutorial: 10 functions
Power Apps Twitter

PowerApps Twitter Connector full tutorial: 10 functions

  • Post author:
  • Post category:Power Apps
  • Reading time:15 mins read

In this Post, we will learn How PowerApps Twitter Connector work ? and How you post tweets and get tweets, timeline, friends, and followers from your Twitter account. so lets know what are the different types of functions in PowerApps Twitter and how to perform?

Microsoft PowerApps Twitter Connector Overview

Twitter is a microblogging and social networking service on which users post and interact with messages known as “tweets” that helps to connect people and allow people to share their thoughts publicly.

PowerApps provides Many connectors to connect to Many services in PowerApps, one of these connector is the Twitter connector that you can use to connect to your Twitter Account in a Power Apps app and deal with many information to perform the twitter tasks such as:

  • Posts the tweet.
  • get a tweet
  • search for a tweet,
  • get the Followers
  • get information about a user friends, name location, etc
  • retrieve all the twitter details of a specific user

Prerequisites to use Twitter Connector

Connect Power apps with Twitter

  • Open Power Apps Make Site
  • In the Apps section choose to create new Canvas App, and provide a meaningful name to the app.
t1 | Power Platform Geeks
  • A Canvas app studio will open for you to design your app
  • In the data section> click +add data and search for the twitter connector in the search text box and add it to your canvas app.
PowerApps Twitter Connector
PowerApps Twitter Connector
  • You will asked to choose the authentication type, you can choose the default shared application, or choose to bring your own application (along with Consumer Key/Consumer Secret).

If you are already signed in, it will not ask you to sign in to the Twitter.

  • Here I will choose the default shared application authentication, as I am not signing in, it asked me to use my credential to sign in to twitter.
  • Then the Twitter connector added successfully to PowerApps
t3 | Power Platform Geeks

What can we do with the PowerApps Twitter connection.

  • Show a timeline, you can use the UserTimeline function to retrieve the most recent tweets posted by a user.
  • Show followers Tweets, you can use the HomeTimeline function to retrieve the most recent tweets and re-tweets posted by me and my followers.
  • Search for Tweet, you can use the SearchTweet to retrieves a collection of relevant tweets matching a specified query.
  • Display Your Follower you can use the MyFollowers function to retrieve users who are following me
  • Display Follower for specific user, you can use the Followers function to retrieve users following the specified user
  • Display people the user follow, You can use the Following function to retrieve users that the specified user is following
  • Display people you Follow, You can use the MyFollowing function to retrieve users you are following
  • User Details, You can use the User function to retrieve details about the specified user
  • Tweet, You can use the Tweet function to post tweet
  • OnNewTweet,Triggers a workflow when a new tweet is posted which matches your search query

Twitter in PowerApps

Show the most recent tweets Posted by the user: Twitter UserTimeLine

Description: In this formula we will ask the twitter connector to show the time line of a specific user.

Parameter: It take the Twitter UserName as a parameter as shown below.

Twitter.UserTimeline("@HebaKamalPP87")

Output: It will list the most recent tweets posted by the user, and you can set the Max number of tweet that you want to show.

Twitter.UserTimeline("@HebaKamalPP87",{maxResults:15})
tw1 | Power Platform Geeks
Microsoft Power Apps twitter: show timeline

Show followers Tweets: Twitter HomeTimeLine function

Description: In this formula we will ask the twitter connector to retrieve the most recent tweets and re-tweets posted by me and my followers “the signed in user”.

Parameter: There isn’t any mandatory argument, but you can specify the number of records you want to show.

Twitter.HomeTimeline()
Twitter.HomeTimeline({maxResults:17})
Show followers Tweets
PowerApps twitter: Show followers Tweets

Search for Tweet: Twitter SearchTweet function

Description: One of the most important function is searching for specific tweet, you get the tweets that contain your name as apart of the tweet text. For example here I will return the tweets that contain “Congrats” word and it will list all the tweets that contain this word.

Parameter: it take the SearchTerm as required parameter

Twitter.SearchTweet("congrats")

Also you can specify the number of tweets you want to show.

Twitter.SearchTweet("congrats",{maxResults:15})
tw3 | Power Platform Geeks
PowerApps twitter: SearchTweet

Display Your Follower: Twitter Myfollowers function

Description: In this formula we will ask the twitter connector to show the users who are following me “the logged in user”

Parameter: There isn’t any mandatory argument, but you can specify the number of followers you want to show.

Twitter.MyFollowers()

You can specify the number of followers you want to show

Twitter.MyFollowers({maxResults:4})
tw4 | Power Platform Geeks
PowerApps twitter: Myfollowers

Display Follower for specific user: Twitter Followers function

Description: In this formula we will ask the twitter connector to retrieve users following the specified user

Parameter: It take the Twitter user UserName as a parameter as shown below.

Twitter.Followers("@MelQassas",)

You can specify the number of followers you want to show for the specified user.

Twitter.Followers("@MelQassas",{maxResults:15})
tw5 | Power Platform Geeks
PowerApps twitter: Followers

Display users that the user follow: twitter Following function

Description: In this formula we will ask the twitter connector to retrieve users that the specified user is following.

Parameter: It take the Twitter user UserName as a parameter as shown below.

Twitter.Following("@melqassas")

You can specify the number of users that the specified user is following

Twitter.Following("@melqassas",{maxResults:20})
tw6 | Power Platform Geeks
PowerApps twitter: Following

Display users you follow: twitter MyFollowing function

Description: In this formula we will ask the twitter connector to Retrieves users that I am following “the logged in user”

Parameter: There isn’t any mandatory argument, but you can specify the number of users you want to show.

Twitter.MyFollowing()

You can specify the number of users that the specified user is following

Twitter.MyFollowing({maxResults:4})
tw7 | Power Platform Geeks
PowerApps twitter: MyFollowing

User Details : Twitter User function

Description: In this formula we will ask the twitter connector to retrieve details about the specified user

Parameter: It take the Twitter user UserName as a parameter as shown below.

Twitter.User("@melqassas")
tw8 | Power Platform Geeks
PowerApps twitter: User

Post a Tweet: Twitter Tweet function

Description: You can use the Tweet function to post tweet to your account

Parameter: It take the tweetText that you want to post.

Twitter.Tweet("",{tweetText: MyTweet.Text})
tw9 | Power Platform Geeks
PowerApps Twitter: Tweet function

Conclusion

In conclusion, we learned how we can connect PowerApps to Twitter and perform the following function:

  • Posts the tweet.
  • get a tweet
  • search for a tweet,
  • get the Followers
  • get information about a user friends, name location, etc
  • retrieve all the twitter details of a specific user

See Also

Join us

Need Help

  • Have a related question? Please ask it at deBUG.to Community.

Heba Kamal

Microsoft MVP, MCT, Technical Speaker, Blogger, and Microsoft 365 and Power Platform Consultant.