Platform Integrations

Official API Integrations

MilaKnight OS connects to social media platforms via their official OAuth 2.0 APIs. Each client authorizes access to their own accounts — we never store passwords. This page documents exactly which permissions are requested and how each one is used.

Facebook

Facebook Integration

Meta Graph API v22.0·OAuth 2.0

Page posts — text, images, and videosPhoto StoriesAudience analytics and insightsScheduled auto-publishing

OAuth Scopes Requested

ScopeHow It Is Used
pages_show_listList the Facebook Pages the user manages so they can select which page to connect
pages_read_engagementRead post engagement metrics (likes, comments, shares) for analytics reports
pages_manage_metadataRead page metadata including name, avatar, and follower count
pages_read_user_contentRead existing posts on the connected page for the content library
pages_manage_postsPublish posts, photos, and videos to the client's Facebook Page
read_insightsPull Page-level analytics: reach, impressions, and audience data
ads_readRead ad account data for performance reporting alongside organic metrics
public_profileDisplay the connected account's basic profile in the dashboard

Publishing Flow

  1. 1Client connects Facebook via OAuth
  2. 2Platform stores page access token
  3. 3Account Manager creates content item
  4. 4Client approves
  5. 5System posts via Graph API /{pageId}/feed or /{pageId}/photo_stories
Instagram

Instagram Integration

Instagram Content Publishing API (Meta Graph API v22.0)·OAuth 2.0 via Facebook Login

Feed posts — photos and videosInstagram StoriesBusiness account insightsMedia container polling for reliability

OAuth Scopes Requested

ScopeHow It Is Used
instagram_basicRead the connected Instagram Business account ID, username, and profile picture
instagram_manage_insightsPull post reach, impressions, profile views, and follower growth for reports
instagram_content_publishPublish approved feed posts and Stories to the client's Instagram account
pages_show_listRetrieve the Facebook Page linked to the Instagram account — required by Meta's API
pages_read_engagementRequired by Meta when accessing Instagram data via a connected Facebook Page

Publishing Flow

  1. 1Client connects Facebook (which links Instagram)
  2. 2Platform fetches linked Instagram Business account ID
  3. 3Account Manager creates post with image or video
  4. 4Client approves
  5. 5System creates media container → polls until FINISHED → calls media_publish
TikTok

TikTok Integration

TikTok Login Kit + Content Posting API v2·OAuth 2.0

Video publishing via PULL_FROM_URLPhoto carousel postsUser profile and follower statsExisting video library display

OAuth Scopes Requested

ScopeHow It Is Used
user.info.basicDisplay the connected TikTok account name and avatar in the dashboard
user.info.profileShow follower count and account details in client reports
user.info.statsPull engagement stats (likes, video count) for performance reports
video.listDisplay the client's existing TikTok video library inside the platform
video.uploadUpload video files to TikTok as part of the publishing workflow
video.publishPublish approved posts (videos and photo carousels) to the client's TikTok account

Publishing Flow

  1. 1Client connects TikTok via OAuth
  2. 2Account Manager creates video or photo carousel content
  3. 3Client approves
  4. 4System calls /v2/post/publish/video/init or /v2/post/publish/content/init
  5. 5Post published on TikTok
LinkedIn

LinkedIn Integration

LinkedIn Marketing API v2·OAuth 2.0

Company page posts with imagesPost performance analyticsOrganization follower data

OAuth Scopes Requested

ScopeHow It Is Used
openidAuthenticate the user via LinkedIn OpenID Connect
profileRead the user's name and profile picture to display in the dashboard
emailIdentify the user's account during the connection flow
r_organization_socialRead analytics and insights from the client's LinkedIn Company Page
w_member_socialPublish posts with text and images to the client's LinkedIn Company Page

Publishing Flow

  1. 1Client connects LinkedIn via OAuth
  2. 2Platform stores organization URN for the company page
  3. 3Account Manager creates post with caption and optional image
  4. 4Client approves
  5. 5System posts via /v2/ugcPosts to the company page
X

X / Twitter Integration

X API v2·OAuth 2.0 with PKCE

Tweet publishing with text and imagesSecure PKCE flow — no client secret exposedToken auto-refresh via offline.access

OAuth Scopes Requested

ScopeHow It Is Used
tweet.readRead the connected account's tweet history and profile details
tweet.writePublish approved tweets to the client's X account
users.readRead user profile data — username, avatar, follower count — for the dashboard
offline.accessKeep the connection alive by enabling token refresh without re-authorization

Publishing Flow

  1. 1Client connects X via OAuth 2.0 PKCE
  2. 2Platform stores access and refresh tokens
  3. 3Account Manager creates tweet with optional image
  4. 4Client approves
  5. 5System posts via POST /2/tweets
Snapchat

Snapchat Integration

Snapchat Marketing API·OAuth 2.0

Ad account analytics and performance dataCampaign-level reportingAudience and reach metrics

OAuth Scopes Requested

ScopeHow It Is Used
snapchat-marketing-apiAccess the client's Snapchat ad accounts to pull campaign performance, spend, reach, and impression data for reports
snapchat-profile-apiRead the connected Snapchat account profile details to display in the dashboard

Publishing Flow

  1. 1Client connects Snapchat via OAuth
  2. 2Platform stores access token and ad account ID
  3. 3System pulls campaign analytics on demand
  4. 4Data shown in the client's analytics dashboard