What you can do
Bring your Instagram account’s posts, comments, and messages into your app’s workflows.Publish posts
Post photos, videos, and carousels to your feed when something happens in your app, such as a new product being added.
Manage comments
Read, reply to, and moderate comments on your posts, for example when a comment includes a keyword.
Answer direct messages
Read direct messages and reply to them from your app within 24 hours of the person’s last message.
Connecting Instagram Business
Choose how people connect: one shared account for your whole app, or each person’s own account.- App user connector
Scopes and permissions
Scopes control what your app can do in Instagram. You choose them when you set up a connector.1
Base44 adds
These are always included, so they show checked and greyed out in the Permissions list for a shared connector, and as locked scopes under Scopes for an app user connector.
instagram_business_basic: View basic information about the account, such as its username and mediainstagram_business_manage_messages: Read and reply to direct messages
2
You configure
For a shared connector, select the scopes your app needs in the Permissions list. For an app user connector, these are preselected under Scopes, and you can remove any your app doesn’t need.
instagram_business_content_publish: Publish photos, videos, and carousels to the feedinstagram_business_manage_comments: Read, reply to, and moderate comments on the account’s posts
Access: Your app works with the Instagram account that authorizes the connection.
Using backend functions
Once Instagram Business is connected, your backend functions can retrieve an access token and call the Instagram API directly. Base44 handles sign-in and keeps the token up to date for you.- For a shared connection, use
getConnection()to retrieve the token. - For an app user connection, use
getCurrentAppUserConnection()so each request uses the signed-in person’s token.
graph.instagram.com and pass the token in the access_token query parameter:
Shared connectors
Configure, deploy, and call a shared connection from a backend function.
App user connectors
Retrieve a per-user token and call the API as the signed-in person.
Troubleshooting
Check the connection and the timing of your replies if Instagram Business stops working in your app.The connection needs to be reconnected
The connection needs to be reconnected
If Instagram access is lost or expires, the connection shows Reconnect this connection. For a shared connector, reconnect it and sign in with the same Instagram account. Every app that uses it works again. For an app user connector, each person reconnects their own account from inside your app.
A reply to a direct message fails
A reply to a direct message fails
Instagram accepts replies to a direct message within 24 hours of the person’s last message. Reply within that window, or wait for the person to message you again.