Publishing to Instagram with Cue
Connect your Instagram Business or Creator account to schedule and publish posts through Cue.
Overview
Instagram is a visual social media platform focused on photos and videos. Cue integrates with the Instagram Graph API to publish content on your behalf.
Important: Cue requires an Instagram Business or Creator account connected to a Facebook Page. Personal Instagram accounts are not supported by the Instagram API.
Sign up for an Instagram account at instagram.com.
Authentication
Instagram uses OAuth 2.0 via Facebook for secure authentication. You must have a Facebook Page connected to your Instagram Business or Creator account.
Prerequisites
Before connecting to Cue:
- Convert your Instagram account to a Business or Creator account
- Create a Facebook Page (if you don't have one)
- Connect your Instagram account to your Facebook Page
Converting to a Business Account
- Open Instagram and go to Settings
- Select Account
- Tap Switch to Professional Account
- Choose Business or Creator
- Follow the prompts to complete setup
Connecting Your Account
- Go to Profiles in your Cue dashboard
- Click Connect Account on a profile
- Select Instagram
- You'll be redirected to Facebook to authorize access
- Select the Facebook Page connected to your Instagram account
- Grant Cue permission to post on your behalf
- You'll be redirected back to Cue automatically
Your credentials are never shared with Cue.
Disconnecting
To disconnect your Instagram account, go to your profile and click Disconnect next to the Instagram connection. This revokes Cue's access to your account.
You can also revoke access from Facebook Settings under Business Integrations.
Content Limits
Instagram enforces the following limits on posts:
| Limit | Value |
|---|---|
| Caption | 2,200 characters |
| Hashtags | 30 per post |
| Images | 1-10 per carousel |
| Video length | 60 seconds (feed), 90 seconds (Reels) |
| File size | 8 MB (images), 100 MB (videos) |
| Aspect ratio | 4:5 to 1.91:1 (feed) |
Cue automatically validates your content before publishing to prevent errors.
Publishing a Post
curl -X POST https://api.oncue.so/v1/posts \
-H "Authorization: Bearer cue_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"profileId": "prf_abc123",
"platforms": {
"sac_instagram1": {
"items": [{ "content": "Beautiful sunset from today'\''s adventure!" }]
}
},
"publishNow": true
}'const response = await fetch("https://api.oncue.so/v1/posts", {
method: "POST",
headers: {
Authorization: "Bearer cue_sk_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
profileId: "prf_abc123",
platforms: {
sac_instagram1: {
items: [{ content: "Beautiful sunset from today's adventure!" }],
},
},
publishNow: true,
}),
});Schedule for Later
curl -X POST https://api.oncue.so/v1/posts \
-H "Authorization: Bearer cue_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"profileId": "prf_abc123",
"platforms": {
"sac_instagram1": {
"items": [{ "content": "Scheduled Instagram post" }]
}
},
"scheduledAt": "2024-01-20T09:00:00-05:00"
}'const response = await fetch("https://api.oncue.so/v1/posts", {
method: "POST",
headers: {
Authorization: "Bearer cue_sk_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
profileId: "prf_abc123",
platforms: {
sac_instagram1: {
items: [{ content: "Scheduled Instagram post" }],
},
},
scheduledAt: "2024-01-20T09:00:00-05:00",
}),
});First Comment
Add an automatic first comment to your Instagram post. This is commonly used for hashtags or supplementary information that you don't want in the main caption.
curl -X POST https://api.oncue.so/v1/posts \
-H "Authorization: Bearer cue_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"profileId": "prf_abc123",
"platforms": {
"sac_instagram1": {
"items": [
{ "content": "Beautiful sunset from today'\''s adventure!" },
{ "type": "comment", "content": "#sunset #photography #travel #nature #photooftheday" }
]
}
},
"publishNow": true
}'const response = await fetch("https://api.oncue.so/v1/posts", {
method: "POST",
headers: {
Authorization: "Bearer cue_sk_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
profileId: "prf_abc123",
platforms: {
sac_instagram1: {
items: [
{ content: "Beautiful sunset from today's adventure!" },
{ type: "comment", content: "#sunset #photography #travel #nature #photooftheday" },
],
},
},
publishNow: true,
}),
});The first comment is posted immediately after your main post is published. If the comment fails, your main post will still be published successfully.
First comment is available on Growth plans and above.
Response
{
"data": {
"id": "pst_xyz789",
"profileId": "prf_abc123",
"content": "Beautiful sunset from today's adventure!",
"status": "queued",
"scheduledAt": null,
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T10:00:00Z"
},
"message": "Post queued for publishing to 1 platform(s)"
}Error Handling
Instagram API errors are translated into user-friendly messages:
| Error Code | Meaning | Solution |
|---|---|---|
401 | Authentication failed | Reconnect your Instagram account |
403 | Account not Business/Creator | Convert to Business or Creator account |
400 | Content validation failed | Check caption length and media format |
429 | Rate limit exceeded | Wait and retry later |
Common Issues
"Reconnect required" error
- Your access token has expired or been revoked
- Go to your profile and reconnect your Instagram account
"Business account required" error
- Instagram API only supports Business and Creator accounts
- Convert your account in Instagram settings
"Facebook Page not connected" error
- Your Instagram account must be connected to a Facebook Page
- Link your Instagram to a Facebook Page in Page settings
"Caption too long" error
- Your caption exceeds 2,200 characters
- Shorten your caption or move hashtags to the first comment
"Invalid media format" error
- Instagram requires specific image dimensions and formats
- Use JPEG or PNG for images
- Ensure aspect ratio is between 4:5 and 1.91:1
Troubleshooting
Connection Issues
"No Instagram accounts found"
- Ensure your Instagram is a Business or Creator account
- Verify your Instagram is connected to a Facebook Page
- Select the correct Facebook Page during authorization
Cannot redirect to Facebook during OAuth
- Check your internet connection
- Try using a different browser
- Disable browser extensions that might block redirects
"Permission denied" during authorization
- Ensure you grant all requested permissions
- Select the Facebook Page connected to your Instagram
Publishing Issues
Posts not appearing on Instagram
- Check if your post is still in "queued" status
- Wait a few minutes - media processing may take time
- Check the post's platform status for error details
Media fails to upload
- Verify image meets dimension requirements
- Check file size is under limits
- Ensure image format is JPEG or PNG
Hashtags not working
- Maximum 30 hashtags per post
- Avoid banned or restricted hashtags
- Place hashtags in caption or first comment
Best Practices
Content Guidelines
- Use high-quality images (1080x1080 minimum)
- Write engaging captions that tell a story
- Include a call to action
- Use hashtags strategically (5-10 relevant tags)
Timing
- Post when your audience is most active
- Use Instagram Insights to find optimal times
- Maintain consistent posting schedule
Visual Consistency
- Develop a recognizable visual style
- Use consistent filters or editing
- Plan your grid layout in advance