Meta
Facebook Pages, Instagram and ads (Meta Graph API)
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- System user tokenSecretRequired
- Graph API versionOptionalIdentifier
Where to find them
- At developers.facebook.com create an app of type “Business” linked to your business portfolio and add the use cases you will need (pages, Instagram, ads).
- At business.facebook.com → “Business settings” → “System users” → “Add” (admin role).
- On that user, “Assign assets”: the app, the pages, the Instagram accounts and the ad accounts.
- “Generate token”: choose the app, expiration “Never” and the permissions (e.g. pages_show_list, pages_read_engagement, pages_manage_posts, read_insights, instagram_basic, instagram_manage_insights, instagram_content_publish, ads_read, ads_management, business_management).
- Copy the token. For assets of your own portfolio standard access is enough; for client assets, Meta may require app review (advanced access).
Tools (1)
Meta API request
META_SEND_REQUESTAuthenticated call to the Meta API (https://graph.facebook.com/{version}). Any endpoint of the API is allowed. Facebook and Instagram Graph API and Marketing API (ads). Examples: GET /me/accounts?fields=id,name,instagram_business_account (pages and their Instagram), GET /{page_id}/posts?fields=id,message,created_time,permalink_url&limit=10, GET /{ig_user_id}/media?fields=id,caption,media_type,permalink,timestamp,like_count,comments_count, GET /{ig_user_id}/insights?metric=reach,views,accounts_engaged&period=day&metric_type=total_value, POST /{ig_user_id}/media {"image_url": "…", "caption": "…"} and POST /{ig_user_id}/media_publish {"creation_id": "…"}, GET /me/adaccounts?fields=id,name,account_status,currency, GET /act_{id}/insights?level=campaign&date_preset=last_30d&fields=campaign_name,spend,impressions,clicks,ctr,actions, GET /act_{id}/campaigns?fields=name,status,objective,daily_budget.
Required scopes
No scopes required
Input
Meta API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

