{"name":"meta-backend","graph_version":"v27.0","connected_as":null,"docs":"/docs","openapi":"/openapi.json","how_to_call":"Send header \"x-api-key: <API_KEY from .env>\". IDs are optional: add ?page_id= / ?ig_id= / ?account_id= to override defaults.","lists":"List responses look like { data: [...], next: \"<cursor>\" }. Pass ?after=<next> for the next page.","endpoints":[{"group":"Login","method":"GET","path":"/auth/login","note":"Log in with Facebook (open in a browser)","public":true},{"group":"Login","method":"POST","path":"/auth/signout","note":"Sign this browser out","public":true},{"group":"Login","method":"GET","path":"/auth/login-url","note":"Get the Facebook login link as JSON","public":true},{"group":"Login","method":"POST","path":"/auth/exchange","note":"Exchange a code or short-lived token for a saved login: With code","public":true,"example_body":{"code":"AQB...","redirect_uri":"https://your-site.com/callback"}},{"group":"Login","method":"POST","path":"/auth/exchange","note":"Exchange a code or short-lived token for a saved login: With JS SDK token","public":true,"example_body":{"access_token":"EAA..."}},{"group":"Login","method":"GET","path":"/auth/status","note":"Who is connected and until when","public":false},{"group":"Login","method":"POST","path":"/auth/refresh","note":"Renew the saved token","public":false},{"group":"Login","method":"POST","path":"/auth/logout","note":"Forget the saved login","public":false},{"group":"Login","method":"GET","path":"/auth/permissions","note":"Granted and declined permissions","public":false},{"group":"Login","method":"GET","path":"/auth/debug","note":"Raw token info from Facebook (debug_token)","public":false},{"group":"Account","method":"GET","path":"/me","note":"Your Facebook profile","public":false},{"group":"Account","method":"GET","path":"/accounts","note":"Everything you manage + the defaults the API uses","public":false},{"group":"Account","method":"GET","path":"/pages","note":"Your Facebook Pages","public":false},{"group":"Account","method":"GET","path":"/accounts/selected","note":"Which Page / Instagram / ad account calls use","public":false},{"group":"Account","method":"PUT","path":"/accounts/selected","note":"Pick the Page / Instagram / ad account to use everywhere: Use this Page (and its Instagram)","public":false,"example_body":{"page_id":"201037486676315"}},{"group":"Account","method":"PUT","path":"/accounts/selected","note":"Pick the Page / Instagram / ad account to use everywhere: Set all three","public":false,"example_body":{"page_id":"201037486676315","ig_id":"17841429368544315","account_id":"act_915760300164138"}},{"group":"Account","method":"PUT","path":"/accounts/selected","note":"Pick the Page / Instagram / ad account to use everywhere: Clear the Page choice","public":false,"example_body":{"page_id":null}},{"group":"Facebook Page","method":"GET","path":"/page","note":"Page details","public":false},{"group":"Facebook Page","method":"PATCH","path":"/page","note":"Update Page info (changes your live Page)","public":false,"example_body":{"about":"We build software for local businesses","website":"https://example.com"}},{"group":"Facebook Page","method":"GET","path":"/posts","note":"List posts","public":false},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Text","public":false,"example_body":{"message":"Hello from the API 👋"}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Link","public":false,"example_body":{"message":"Read our latest article","link":"https://example.com/blog"}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Photo","public":false,"example_body":{"message":"New photo","image_url":"http://localhost:3074/samples/photo-1.jpg"}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Several photos","public":false,"example_body":{"message":"Album","image_urls":["http://localhost:3074/samples/photo-1.jpg","http://localhost:3074/samples/photo-2.jpg"]}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Video","public":false,"example_body":{"message":"Watch this","video_url":"https://YOUR-SITE.com/your-video.mp4","title":"Demo"}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Scheduled","public":false,"example_body":{"message":"Coming soon","schedule_at":"2026-12-15T10:00:00+05:30"}},{"group":"Facebook Page","method":"POST","path":"/posts","note":"Create a post (text, link, photo, album, video, scheduled, draft): Hidden draft","public":false,"example_body":{"message":"Draft","published":false}},{"group":"Facebook Page","method":"GET","path":"/posts/:id","note":"Get one post","public":false},{"group":"Facebook Page","method":"PATCH","path":"/posts/:id","note":"Edit a post","public":false,"example_body":{"message":"Updated text"}},{"group":"Facebook Page","method":"DELETE","path":"/posts/:id","note":"Delete a post","public":false},{"group":"Facebook Page","method":"GET","path":"/posts/:id/reactions","note":"Who reacted to a post","public":false},{"group":"Facebook Page","method":"GET","path":"/posts/:id/insights","note":"Post stats","public":false},{"group":"Facebook Page","method":"GET","path":"/insights","note":"Page stats","public":false},{"group":"Facebook Page","method":"GET","path":"/photos","note":"Uploaded photos","public":false},{"group":"Facebook Page","method":"GET","path":"/videos","note":"Videos","public":false},{"group":"Facebook Page","method":"GET","path":"/albums","note":"Albums","public":false},{"group":"Facebook Comments","method":"GET","path":"/posts/:id/comments","note":"Comments on a post","public":false},{"group":"Facebook Comments","method":"POST","path":"/posts/:id/comments","note":"Comment as the Page","public":false,"example_body":{"message":"Thanks for reading!"}},{"group":"Facebook Comments","method":"GET","path":"/comments/:id","note":"Get one comment","public":false},{"group":"Facebook Comments","method":"PATCH","path":"/comments/:id","note":"Hide / unhide, or edit: Hide","public":false,"example_body":{"hide":true}},{"group":"Facebook Comments","method":"PATCH","path":"/comments/:id","note":"Hide / unhide, or edit: Edit","public":false,"example_body":{"message":"Edited reply"}},{"group":"Facebook Comments","method":"DELETE","path":"/comments/:id","note":"Delete a comment","public":false},{"group":"Facebook Comments","method":"GET","path":"/comments/:id/replies","note":"Replies to a comment","public":false},{"group":"Facebook Comments","method":"POST","path":"/comments/:id/reply","note":"Reply as the Page","public":false,"example_body":{"message":"Thank you!"}},{"group":"Facebook Comments","method":"POST","path":"/comments/:id/like","note":"Like as the Page","public":false},{"group":"Facebook Comments","method":"DELETE","path":"/comments/:id/like","note":"Unlike","public":false},{"group":"Messenger","method":"GET","path":"/conversations","note":"Inbox conversations","public":false},{"group":"Messenger","method":"GET","path":"/conversations/:id","note":"Messages in a conversation","public":false},{"group":"Messenger","method":"POST","path":"/messages","note":"Send a message","public":false,"example_body":{"to":"2468…","text":"Hi! How can we help?"}},{"group":"Instagram","method":"GET","path":"/instagram/accounts","note":"Your Instagram accounts","public":false},{"group":"Instagram","method":"GET","path":"/instagram","note":"Instagram profile","public":false},{"group":"Instagram","method":"GET","path":"/instagram/posts","note":"List Instagram posts","public":false},{"group":"Instagram","method":"POST","path":"/instagram/posts","note":"Publish (photo, reel, carousel, story): Photo","public":false,"example_body":{"caption":"Hello Instagram","image_url":"http://localhost:3074/samples/photo-1.jpg"}},{"group":"Instagram","method":"POST","path":"/instagram/posts","note":"Publish (photo, reel, carousel, story): Reel","public":false,"example_body":{"caption":"My reel","video_url":"https://YOUR-SITE.com/your-reel.mp4"}},{"group":"Instagram","method":"POST","path":"/instagram/posts","note":"Publish (photo, reel, carousel, story): Carousel","public":false,"example_body":{"caption":"Swipe →","image_urls":["http://localhost:3074/samples/photo-1.jpg","http://localhost:3074/samples/photo-2.jpg"]}},{"group":"Instagram","method":"POST","path":"/instagram/posts","note":"Publish (photo, reel, carousel, story): Story","public":false,"example_body":{"story":true,"image_url":"http://localhost:3074/samples/story.jpg"}},{"group":"Instagram","method":"POST","path":"/instagram/posts","note":"Publish (photo, reel, carousel, story): Prepare only (no publish)","public":false,"example_body":{"caption":"Test","image_url":"http://localhost:3074/samples/photo-1.jpg","publish":false}},{"group":"Instagram","method":"GET","path":"/instagram/posts/:id","note":"Get one Instagram post","public":false},{"group":"Instagram","method":"PATCH","path":"/instagram/posts/:id","note":"Turn comments on/off","public":false,"example_body":{"comments_enabled":false}},{"group":"Instagram","method":"GET","path":"/instagram/posts/:id/insights","note":"Post stats (needs instagram_manage_insights)","public":false},{"group":"Instagram","method":"GET","path":"/instagram/stories","note":"Active stories","public":false},{"group":"Instagram","method":"GET","path":"/instagram/tags","note":"Posts you are tagged in (needs instagram_manage_insights)","public":false},{"group":"Instagram","method":"GET","path":"/instagram/limit","note":"API posts left today","public":false},{"group":"Instagram","method":"GET","path":"/instagram/insights","note":"Account stats (needs instagram_manage_insights)","public":false},{"group":"Instagram","method":"GET","path":"/instagram/lookup/:username","note":"Public stats of another business/creator account","public":false},{"group":"Instagram","method":"GET","path":"/instagram/uploads/:id","note":"Status of an upload (videos take time)","public":false},{"group":"Instagram","method":"POST","path":"/instagram/uploads/:id/publish","note":"Publish a prepared upload","public":false},{"group":"Instagram Comments","method":"GET","path":"/instagram/posts/:id/comments","note":"Comments (with replies)","public":false},{"group":"Instagram Comments","method":"POST","path":"/instagram/posts/:id/comments","note":"Add a comment","public":false,"example_body":{"message":"Thanks everyone!"}},{"group":"Instagram Comments","method":"GET","path":"/instagram/comments/:id","note":"Get one comment","public":false},{"group":"Instagram Comments","method":"PATCH","path":"/instagram/comments/:id","note":"Hide / unhide","public":false,"example_body":{"hide":true}},{"group":"Instagram Comments","method":"DELETE","path":"/instagram/comments/:id","note":"Delete a comment","public":false},{"group":"Instagram Comments","method":"POST","path":"/instagram/comments/:id/reply","note":"Reply to a comment","public":false,"example_body":{"message":"Thank you!"}},{"group":"Ads","method":"GET","path":"/ads/accounts","note":"All ad accounts","public":false},{"group":"Ads","method":"GET","path":"/ads/account","note":"Default ad account (spend, balance, currency)","public":false},{"group":"Ads","method":"GET","path":"/ads/insights","note":"Spend & results (default: per campaign, last 7 days)","public":false},{"group":"Ads","method":"POST","path":"/ads/quick","note":"Create a complete ad in one call","public":false,"example_body":{"name":"Website visits - Dec","link":"https://example.com","message":"Grow your business with us","headline":"Free consultation","image_url":"http://localhost:3074/samples/ad.jpg","daily_budget":100,"countries":["IN"],"age_min":25,"age_max":55,"days":3,"cta":"LEARN_MORE"}},{"group":"Ads","method":"GET","path":"/ads/targeting","note":"Find targeting IDs (interests, places, jobs…)","public":false},{"group":"Ads","method":"GET","path":"/ads/reach","note":"Estimated audience size","public":false},{"group":"Ads","method":"GET","path":"/ads/images","note":"Uploaded ad images","public":false},{"group":"Ads","method":"POST","path":"/ads/images","note":"Upload an ad image → hash","public":false,"file":true},{"group":"Ads","method":"GET","path":"/ads/audiences","note":"Custom audiences","public":false},{"group":"Ads","method":"GET","path":"/ads/pages","note":"Pages this ad account can promote","public":false},{"group":"Ads","method":"GET","path":"/ads/campaigns","note":"List campaigns","public":false},{"group":"Ads","method":"POST","path":"/ads/campaigns","note":"Create campaign","public":false,"example_body":{"name":"My campaign","objective":"OUTCOME_TRAFFIC"}},{"group":"Ads","method":"GET","path":"/ads/campaigns/:id","note":"Get campaign","public":false},{"group":"Ads","method":"PATCH","path":"/ads/campaigns/:id","note":"Update campaign","public":false,"example_body":{"name":"Renamed","daily_budget":300}},{"group":"Ads","method":"DELETE","path":"/ads/campaigns/:id","note":"Delete campaign","public":false},{"group":"Ads","method":"POST","path":"/ads/campaigns/:id/:action","note":"Activate / pause / archive campaign","public":false},{"group":"Ads","method":"GET","path":"/ads/campaigns/:id/insights","note":"Campaign results","public":false},{"group":"Ads","method":"GET","path":"/ads/adsets","note":"List adsets","public":false},{"group":"Ads","method":"POST","path":"/ads/adsets","note":"Create ad set","public":false,"example_body":{"name":"India 25-45","campaign_id":"<campaign id>","daily_budget":500,"countries":["IN"],"age_min":25,"age_max":45,"billing_event":"IMPRESSIONS","optimization_goal":"LINK_CLICKS","bid_strategy":"LOWEST_COST_WITHOUT_CAP","destination_type":"WEBSITE"}},{"group":"Ads","method":"GET","path":"/ads/adsets/:id","note":"Get ad set","public":false},{"group":"Ads","method":"PATCH","path":"/ads/adsets/:id","note":"Update ad set","public":false,"example_body":{"name":"Renamed","daily_budget":300}},{"group":"Ads","method":"DELETE","path":"/ads/adsets/:id","note":"Delete ad set","public":false},{"group":"Ads","method":"POST","path":"/ads/adsets/:id/:action","note":"Activate / pause / archive ad set","public":false},{"group":"Ads","method":"GET","path":"/ads/adsets/:id/insights","note":"Ad set results","public":false},{"group":"Ads","method":"GET","path":"/ads/ads","note":"List ads","public":false},{"group":"Ads","method":"POST","path":"/ads/ads","note":"Create ad","public":false,"example_body":{"name":"Ad 1","adset_id":"<ad set id>","creative_id":"<creative id>"}},{"group":"Ads","method":"GET","path":"/ads/ads/:id","note":"Get ad","public":false},{"group":"Ads","method":"PATCH","path":"/ads/ads/:id","note":"Update ad","public":false,"example_body":{"name":"Renamed"}},{"group":"Ads","method":"DELETE","path":"/ads/ads/:id","note":"Delete ad","public":false},{"group":"Ads","method":"POST","path":"/ads/ads/:id/:action","note":"Activate / pause / archive ad","public":false},{"group":"Ads","method":"GET","path":"/ads/ads/:id/insights","note":"Ad results","public":false},{"group":"Ads","method":"GET","path":"/ads/ads/:id/preview","note":"Preview ad (HTML iframe)","public":false},{"group":"Ads","method":"GET","path":"/ads/creatives","note":"List creatives","public":false},{"group":"Ads","method":"POST","path":"/ads/creatives","note":"Create creative","public":false,"example_body":{"name":"Creative 1","link":"https://example.com","message":"Grow your business with us","headline":"Free consultation","image_url":"http://localhost:3074/samples/ad.jpg","cta":"LEARN_MORE"}},{"group":"Ads","method":"GET","path":"/ads/creatives/:id","note":"Get creative","public":false},{"group":"Ads","method":"PATCH","path":"/ads/creatives/:id","note":"Update creative","public":false,"example_body":{"name":"Renamed"}},{"group":"Ads","method":"DELETE","path":"/ads/creatives/:id","note":"Delete creative","public":false},{"group":"Ads","method":"GET","path":"/ads/creatives/:id/preview","note":"Preview creative (HTML iframe)","public":false},{"group":"Advanced","method":"GET","path":"/graph/:path","note":"Call any Graph API path (GET)","public":false},{"group":"Advanced","method":"GET","path":"/health","note":"Server health","public":true}]}