Skip to main content

πŸš€ Quickstart

Connect to Facebook with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Facebook.
2

Authorize Facebook

Go to Connections -> Add Test Connection -> Authorize, then log in to Facebook. Later, you’ll let your users do the same directly from your app.
3

Call the Facebook API

Let’s make your first request to the Facebook API (fetch authenticated user profile information). Replace the placeholders below with your secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/me?fields=id,name,email" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

πŸ“š Facebook Integration Guides

Nango maintained guides for common use cases. Official docs: Facebook API docs

🧩 Pre-built syncs & actions for Facebook

Enable them in your dashboard. Extend and customize to fit your needs.

Comments

Function nameDescriptionTypeSource code
create-post-commentCreate a comment on a Facebook postActionπŸ”— Github
delete-commentDelete a Facebook comment by comment IDActionπŸ”— Github
get-commentRetrieve a Facebook comment by comment ID.ActionπŸ”— Github

Page Posts

Function nameDescriptionTypeSource code
create-page-postPublish a post to a Facebook Page feed.ActionπŸ”— Github

Page Subscriptions

Function nameDescriptionTypeSource code
get-page-app-subscriptionsRetrieve app subscriptions configured on a Facebook PageActionπŸ”— Github

Page Videos

Function nameDescriptionTypeSource code
create-page-videoPublish a video to a Facebook Page.ActionπŸ”— Github

Pages

Function nameDescriptionTypeSource code
create-page-photoPublish a photo to a Facebook Page.ActionπŸ”— Github
get-pageRetrieve Facebook Page metadata by page IDActionπŸ”— Github
list-page-scheduled-postsList scheduled posts for a Facebook PageActionπŸ”— Github
list-page-videosList videos published on a Facebook PageActionπŸ”— Github
list-user-pagesList Facebook Pages the authenticated user can accessActionπŸ”— Github
subscribe-app-to-pageSubscribe the app to receive updates for a Facebook PageActionπŸ”— Github
unsubscribe-app-from-pageRemove the app subscription from a Facebook PageActionπŸ”— Github

Posts

Function nameDescriptionTypeSource code
create-scheduled-page-postSchedule a future post on a Facebook PageActionπŸ”— Github
delete-postDelete a Facebook Page post by post IDActionπŸ”— Github
get-postRetrieve a Facebook post by post IDActionπŸ”— Github
list-page-postsList posts from a Facebook Page feed.ActionπŸ”— Github

Users

Function nameDescriptionTypeSource code
get-user-profileRetrieve the authenticated Facebook user profile or another accessible user object.ActionπŸ”— Github

Others

Function nameDescriptionTypeSource code
list-post-commentsList comments on a Facebook post with pagination supportActionπŸ”— Github
page-postsSync posts from Facebook Pages the connection can access.SyncπŸ”— Github
page-scheduled-postsSync scheduled unpublished posts for Facebook Pages in scopeSyncπŸ”— Github
page-videosSync videos published on Facebook Pages in scope.SyncπŸ”— Github
pagesSync Facebook Pages the authenticated user can accessSyncπŸ”— Github