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?
- 1 Microsoft PowerApps Twitter Connector Overview
-
2
Twitter in PowerApps
- 2.1 Show the most recent tweets Posted by the user: Twitter UserTimeLine
- 2.2 Show followers Tweets: Twitter HomeTimeLine function
- 2.3 Search for Tweet: Twitter SearchTweet function
- 2.4 Display Your Follower: Twitter Myfollowers function
- 2.5 Display Follower for specific user: Twitter Followers function
- 2.6 Display users that the user follow: twitter Following function
- 2.7 Display users you follow: twitter MyFollowing function
- 2.8 User Details : Twitter User function
- 2.9 Post a Tweet: Twitter Tweet function
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
- Access to Power Apps Make Site .
- Create an app from a template, from data, or from scratch
- Add the Power Apps 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.
- 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.
- 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
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})
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})
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})
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})
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})
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})
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})
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")
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})
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
- What are Microsoft Power Apps?
- How To Use Power Automate?
- PowerApps Print Function, Forms, And Scrollable Galleries
- PowerApps Validation Examples On/before Submitting
- Share PowerApps With External Users / Guest Users
Join us
- Subscribe to Power Platform Geeks YouTube channel.
- Register to Saudi Arabia Power Platform User Group.
Need Help
- Have a related question? Please ask it at deBUG.to Community.