Permissions Mapping

Scope & Permission Details

This page documents all OAuth scopes/permissions requested by the FlyWhale demo, the corresponding UI actions, API endpoints called, and data retrieved.

Meta Graph API Permissions
Meta Docs
PermissionUI ActionAPI EndpointData Retrieved
pages_show_listRequired
Discover AccountsGET /me/accountsFacebook Page IDs, names, and linked Instagram Business accounts
pages_read_engagementRequired
View Page StatsGET /{page-id}Page engagement metrics and statistics
instagram_basicRequired
View IG Profile & MediaGET /{ig-user-id} & GET /{ig-user-id}/mediaInstagram username, profile picture, followers count, media list with captions
instagram_manage_insightsRequired
View IG InsightsGET /{ig-user-id}/insights & GET /{ig-media-id}/insightsAccount reach, impressions, profile views; per-post engagement metrics
ads_readRequired
View Ad PerformanceGET /act_{ad-account-id}/insightsAd account impressions, reach, spend, clicks, CPM, CPC, CTR
TikTok API Permissions
TikTok Docs
PermissionOAuth FlowUI ActionAPI EndpointData Retrieved
user.info.basicRequired
Login KitView ProfileGET /v2/user/info/Display name, avatar URL, bio, follower/following counts, likes count, verification status
video.listRequired
Login KitView VideosPOST /v2/video/list/Video IDs, titles, descriptions, cover images, view/like/comment/share counts
research.adlib.basicRequired
Login KitSearch Ad LibraryPOST /v2/research/adlib/ad/query/ & /report/Public ad information: advertiser name, impressions range, spend range, targeting
Business API AccessOptional
Business APIView Own Ads/open_api/v1.3/advertiser/info/ & /report/integrated/get/Own advertiser accounts, ad performance metrics, spend data
Data Handling

Token Storage

OAuth tokens are encrypted using AES-256-GCM before storage in Supabase. Tokens are session-scoped and automatically deleted when the demo is reset.

Data Retention

API response data is displayed in real-time and not permanently stored. Connected account information is cached for the duration of the demo session.

Demo Reset

The "Reset Demo" button deletes all stored tokens, connected accounts, and session data from the database.