How to use the Bubble IO Ayrshare plugin to post to your social media accounts via Bubble.io
Bubble is one of the most powerful no-code software development platforms. The simplest way to get started is with Ayrshare's Bubble.io Plugin.
We recommend that you read through our tutorial article to get started. Or check out the video tutorial below.
Bubble IO Social Media Posting
Once your accounts are connected you can navigate to the API Dashboard and copy your API key.
Remember that when you past in your API key in your Bubble app, to include the word "Bearer" in front of your API key.
Add the Ayrshare plugin via the Bubble plugin marketplace to your Bubble app. In the plugin field "API Key" enter your API Key.
Now you can send posts via your Bubble app to your social media accounts. Learn more about the fields for the post endpoint in the link below.
Alternatively, you can use the Bubble API Connector Plugin to access the full power of the Ayrshare API. Here is a video which will get you started using the Bubble API connector with Ayrshare and walks you through how to post multiple images per post.
Create a Post from Bubble
Below is another tutorial video showing how to get social profile analytics in Bubble.
Get Analytics in Bubble
Here is a article with an overview:
When posting to Bubble via the API Connector, it can be difficult to determine if you are sending valid JSON. Often if the JSON posted to Ayrshare is invalid the response will be HTML.
Ayrshare has a /validateJSON url that allow you to post to instead of the typical /post endpoint. It will return "Valid" or "Not Valid". Be sure to set the Content-Type as
text/plaininstead of the typical
Click the Troubleshooting link below and then "Response Returns as Bad Request" to see the details.
Use Bubble's File Uploader to upload your media files. These files are stores on Amazon's S3. You will receive back a URL that can be used in the
mediaUrlsbody parameter of the
To generate a JWT Token in Bubble, first you need to Stringify the private.key you send to the /profiles/generateJWT endpoint.
Step 1: Go to https://onlinetexttools.com/json-stringify-text and paste in your private.key in the left hand input text section. Then copy the stringified text on the right side to your clipboard.
Step 2: In your Bubble app, create a new call with the API Connector as shown below. The text in the
privateKeyfield in the Body area is the stringified text that you created in step 1 above.
Also include your provided
profileKeyas shown below.
Step 3: Click the Initialize call button and save the response. The
urlfield in the response is what your user will click to access the social media accounts linking page.
If you are using the Business Plan or Enterprise Plan, this video shows you how to set up Bubble to enable all your users to link their social accounts.