Overview
Bubble.io, a popular no-code platform, enables you to build web and mobile apps without writing a single line of code. By integrating Ayrshare’s social media API, you can manage your users’ social media accounts directly within your Bubble app. There are two ways to achieve this:- Bubble Ayrshare Plugin: This user-friendly option requires minimal set up. However, it has limited functionality compared to the Bubble API Connector.
- Bubble API Connector: For greater flexibility and control, utilize the Bubble API Connector. This approach allows you to directly interact with Ayrshare’s API, enabling a wider range of functionalities within your Bubble.io app.
Quick Start: The Bubble.io Ayrshare Plugin
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. See below for a more advanced Bubble integration. First create an account at ayrshare.com. Then connect your social media accounts.Connect social accounts
Remember that when you paste in your API key in your Bubble app, to include the word “Bearer” in front of your API key.For example:
Bearer bf55cc6f-76ac-46ce-b497-439d766f6c12
- post: a text formatted as JSON-safe
- platforms: a list of texts where each text has parenthesis around it, such as
"facebook","instagram"
- media: a text URL formatted as JSON-safe
- date: a date/time formatted as JSON-safe

The Bubble API Connector Plugin
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.Bubble’s API Connector can sometimes be tricky where missing a single closing quote or space can
cause the connection to fail. We recommend watching the below videos carefully and re-reviewing if
something isn’t working.
Post to Multiple Social Media Accounts
Here is a article with an overview:Post To Multiple Accounts From Bubble
Validate Bubble Post Data
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 astext/plain
instead of the typical application/json
.
Click the Troubleshooting link for “Response Returns as Bad Request” to see the details.
Troubleshooting
Upload Media Files in Bubble
Use Bubble’s File Uploader to upload your media files. These files are stored on Amazon’s S3. You will receive back a URL that can be used in themediaUrls
body parameter of the /post
endpoint.
Generate JWT Token in Bubble
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.
privateKey
field in the Body area is the stringified text that you created in step 1 above.
Also include your provided domain
and profileKey
as shown below.

url
field in the response is what your user will click to access the social media accounts linking page.
