You Know Stackposts?

#1 Social Media Management & Analysis Platform

API Integration – Social Media APIs

Facebook + Instagram API Official

Estimated reading: 6 minutes

๐Ÿ“˜ 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

  1. Open the Meta Developer Dashboard: https://developers.facebook.com/apps/

  2. Click Create App.

  3. Select: Other โ†’ Business.

  4. Click Next.

  5. Enter the required information:

  6. 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.html and 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

  1. Open: Review โ†’ Verification.

  2. Follow the instructions and submit verification.

  3. โš ๏ธ 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

  1. Open your Stackposts Admin Panel.

  2. Navigate to: Admin โ†’ API Integration โ†’ Facebook. Paste App ID and App Secret. Click Save Changes.

  3. 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

  1. Open your Stackposts Dashboard โ†’ Channels โ†’ Add Channels.

  2. Facebook Page: Click Facebook โ†’ + Page. Login and approve permissions.

  3. 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:

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).

Share this Doc

Facebook + Instagram API Official

Or copy link

CONTENTS
Antimanual

Ask our AI support assistant your questions about our platform, features, and services.

You are offline
Chatbot Avatar
What can I help you with?