NO CODE PLUGINS
Twitter V2 Integration
12min
the pathfix twitter v2 connector plugin enables integration from your bubble app to your user's twitter using the v2 version of twitters api the plugin will render the connect button (ui) and calls the relevant twitter v2 api for the action/data calls mentioned below this documentation will show setup guide and a few sample setups setup the plugin is available in the bubble plugin store before proceeding, make sure your twitter developer app has access to the twitter v2 api with oauth 2 access setup in pathfix log into pathfix and add an application (or select an existing application) select twitterv2 from the list of providers (the plugin will work with twitter v2 only)) add your twitter v2 clientid and clientsecret and hit save navigate to the keys section copy your pathfix public key and x private key for use in your bubble plugins setup in bubble important you need to install the pathfix oauth connector https //docs pathfix com/bubble/pathfix oauth connector first before installing this plugin and add your pathfix public key log in to your bubble app and click on add plugin pick the twitter v2 api (oauth) plugin by pathfix inc and install it ( click here to access the plugin ) under x partner key (shared headers) , add your pathfix x partner key from the keys section of your pathfix account on your design page, add the pathfix connector element and select 'all providers configured in my pathfix account' optional if you have multiple providers configured in your pathfix app and only want to show the twitter v2 button, add the provider name under 'list of providers' go to preview to check the connect ui button for the twitter v2 integration once installed, there are no additional configurations required to get the plugin to work you can setup your workflow in bubble and start using the actions you can add dropdown, text etc elements to pull in twitter v2 api data for your users using the plugin and setup workflows to twitter actions actions and data calls the plugin calls a few apis of twitter v2 api and offers them as actions or data calls in your bubble app once installed these are note each consumed action is counted as 1 api call in pathfix post tweet (text only) twitter v2 allows you to post tweets to your users connected account to set this up, here's what you need to do add an input element to capture the tweet add a button element to post create a workflow on the button and set the following workflow get users tweet you can use the twitter v2 api to get the connected users tweets here is what the setup would look like add a repeating group on your design page add text element in the repeating group in the data source, choose to get data from an external api and search for 'twitter v2 user tweets' api fill in the required inputs as per the image below please note the user id is your current user's unique id and the user id is twitter user id that you can get by making the me call (shown below) select the text element within the repeating group select the dynamic input as shown in the following image get users follower data you can use the twitter v2 api to get the connected users tweets the setup for this is similar to the previous sample here is what the setup would look like add a repeating group on your design page add text element in the repeating group in the data source, choose to get data from an external api and search for 'twitter v2 user followers' api fill in the required inputs as per the image below please note the user id is your current user's unique id and the user id is twitter user id that you can get by making the me call (shown below) select the text element within the repeating group select the dynamic input as shown in the image below you can choose to show any of the data below followers data need help? reach out to us at support\@pathfix com