๐ Facebook & Instagram API Setup Guide for Stackposts
This guide explains how to configure a Meta (Facebook) App so that Stackposts can connect to Facebook Pages and Instagram Professional accounts for publishing posts and retrieving analytics.
-
โฑ Estimated Setup Time: 30โ50 minutes
-
๐ Phase Count: 6 Phases
๐ Phase 1 โ Create the Meta App
Step 1 โ Create a Meta Application
-
Open the Meta Developer Dashboard: https://developers.facebook.com/apps/
-
Click Create App.
-
Select: Other โ Business.
-
Click Next.
-
Enter the required information:
-
App Name: Stackposts (Example)
-
Contact Email: [email protected]
-
-
Click Create App.
Step 2 โ Select App Use Cases
Meta will ask which Use Cases your application requires. Select the following:
-
โ Manage everything on your Page (Enables Facebook Pages API)
-
โ Manage messaging & content on Instagram (Enables Instagram Graph API)
-
Click Next.
Step 3 โ Configure Basic App Settings
Navigate to: App Settings โ Basic and fill in the following:
| Field | Value |
| App Domains | yourdomain.com |
| Privacy Policy URL | https://yourdomain.com/privacy-policy |
| Terms of Service URL | https://yourdomain.com/terms-of-service |
| User Data Deletion URL | https://yourdomain.com/delete-data.html |
| App Icon | Upload a 1024 ร 1024 px logo |
| Category | Business and Pages |
| Support Email | [email protected] |
๐ Required: Data Deletion Page
Meta requires a User Data Deletion page. Create a file
delete-data.htmland upload it to your website.Example template:
HTML<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Data Deletion Request</title> <style> body{font-family:sans-serif;background:#f9fafb;text-align:center} .container{max-width:700px;margin:60px auto;background:#fff;padding:40px;border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,0.1)} h1{color:#675dff} .btn{display:inline-block;padding:12px 24px;background:#675dff;color:#fff;text-decoration:none;border-radius:8px} </style> </head> <body><div class="container"> <h1>Data Deletion Request</h1> <p>If you wish to request deletion of your data from our system, please contact us.</p> <a href="mailto:[email protected]" class="btn">Request Data Deletion</a> <p>Your request will be processed within 7 business days.</p> </div></body> </html>
โ ๏ธ Important: Without these fields Meta will display: Currently Ineligible for Submission and you will not be able to submit the app for review.
Step 4 โ Connect Business Portfolio
Select your business if available (Example: Your Business Name). If you do not have one yet, select: I don't want to connect a business portfolio yet. Click Next.
๐ก Phase 2 โ Verification & Permissions
Step 5 โ Complete Access Verification
-
Open: Review โ Verification.
-
Follow the instructions and submit verification.
-
โ ๏ธ Important: Access verification can take up to 5 days. Wait until the status becomes: Verified. Only then continue to App Review.
Step 6 โ Add Required Permissions
Open: Use Cases โ Customize โ Permissions and Features. Add the following:
| Permission | Purpose |
pages_show_list |
Connect Facebook Pages |
pages_read_engagement |
Retrieve page analytics |
pages_manage_posts |
Publish posts to Facebook Pages |
instagram_basic |
Connect Instagram accounts |
instagram_content_publish |
Publish posts to Instagram |
instagram_manage_insights |
Retrieve Instagram analytics |
business_management |
Manage business assets |
Status result: Should display Ready for testing.
โ Phase 3 โ Configure Stackposts
Step 7 โ Copy App Credentials
Open: App Settings โ Basic. Copy the App ID and App Secret.
Step 8 โ Add Credentials in Stackposts
-
Open your Stackposts Admin Panel.
-
Navigate to: Admin โ API Integration โ Facebook. Paste App ID and App Secret. Click Save Changes.
-
Navigate to: Admin โ API Integration โ Instagram. Paste the same credentials. Click Save Changes.
Step 9 โ Add Redirect URLs
Open: Facebook Login for Business โ Settings. Find Valid OAuth Redirect URIs and add:
-
https://yourdomain.com/app/facebook/page -
https://yourdomain.com/app/facebook/profile -
https://yourdomain.com/app/instagram/profile(Replace [suspicious link removed] with your actual domain).
๐งช Phase 4 โ Testing Integration
Step 10 โ Connect Social Accounts
-
Open your Stackposts Dashboard โ Channels โ Add Channels.
-
Facebook Page: Click
Facebook โ + Page. Login and approve permissions. -
Instagram Account: Click
Instagram โ + Profile. Login using Facebook.
โ ๏ธ Requirements: Instagram must be a Professional Account and Connected to a Facebook Page.
Step 11 โ Create a Test Post
Open Publishing โ Compose. Upload an image and write: "Test post from Stackposts". Click Post Now.
Step 12 โ Verify the Post
Open your Facebook Page and Instagram Profile. If the post appears, the integration works!
๐งพ Phase 5 โ App Review
Step 13 โ Test Your Use Cases
Open: Meta Dashboard โ Review โ Testing. Verify:
-
Login to platform
-
Connect Facebook Page / Instagram account
-
Publish a post
โ ๏ธ Important: Wait 24 hours after testing before submitting for review to allow Meta to detect API calls.
Step 14 โ Allowed Usage (Permission Descriptions)
In App Review โ Permissions and Features, click Get Started for each and use these details:
instagram_manage_contents
-
Description: Our platform is a social media management tool that allows users to connect their Instagram Professional accounts and manage their content from a centralized scheduling dashboard. Users can create, upload, and schedule posts.
-
What to Upload: Screen recording showing login, adding channel, and publishing a post.
instagram_content_publish
-
Description: This permission is used to publish images or videos created by the user directly to their Instagram account through the Instagram Graph API.
-
What to Upload: Use the same screen recording.
instagram_basic
-
Description: Used to retrieve basic information (ID, Username, Profile info) to display the connected account inside the dashboard.
-
What to Upload: Same screen recording.
pages_read_engagement
-
Description: Used to retrieve engagement data (Reactions, Comments, Insights) to help users understand post performance in the Analytics section.
-
What to Upload: Same recording (ensure a Facebook Page is connected).
pages_manage_posts
-
Description: Allows the application to publish content to Facebook Pages managed by the user.
-
What to Upload: Recording showing adding a Page and publishing content to it.
pages_show_list
-
Description: Allows the application to retrieve the list of Facebook Pages managed by the user so they can select which Page to connect.
business_management
-
Description: Used to access Facebook Business assets associated with the user to retrieve and manage Pages connected to their Business Manager.
public_profile
-
Description: Used to retrieve basic info (User ID, Name) when logging in to create and manage the user's account within the platform.
๐น Screen Recording Example
Meta requires a 1โ2 minute video showing the full workflow.
-
Facebook Record:
-
Instagram Record:
๐ Phase 6 โ Final Submission
Step 15 โ Complete Data Handling
Open: Review โ App Review โ Data Handling.
-
Data processors: No
-
Responsible entity: Your Company Name
-
Shared with authorities: No
Step 16 โ Add Website Platform
Open: App Settings โ Basic. Click Add Platform โ Website.
-
URL:
https://yourdomain.com
Step 17 โ Provide Testing Instructions
Open: App Settings โ Basic.
-
App Location:
https://yourdomain.com -
Test Account:
-
Email:
[email protected] -
Password:
Review123!
-
Step 18 โ Submit for Review
Open: Review โ App Review โ Click Submit for Review.
After approval, switch the app from Development Mode to Live Mode.
โ Summary Requirements & โ Common Rejections
-
โ Instagram must be a Professional Account connected to a Facebook Page.
-
โ Privacy Policy must be publicly accessible on your website.
-
โ Screen recording must show the full publishing process.
-
โ Rejection: Reviewer cannot login. (Ensure test account works).
-
โ Rejection: Instagram is not Professional. (Switch in IG settings).