Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


A Gatsby source plugin for sourcing data into your Gatsby application from Facebooks graph API.


npm install --save gatsby-source-facebook


yarn add gatsby-source-facebook-graphql

How to use:

// In your gatsby-config.js
module.exports = {
  plugins: [
      resolve: `gatsby-source-facebook-graphql`,
      options: {
        // Facebook account or page ID
        pageId: 1690402924350633,
        params: {
          fields: [
        // Access Token from facebook
        accessToken: process.env.GATSBY_FACEBOOK_GRAPH_TOKEN,
© 2023 Gatsby, Inc.