0
votes

I cannot find the data in graphql with this plugin, all I can get is the FB id.

This is my gatsby-config

{
      resolve: `gatsby-source-facebook-graphql`,
      options: {
        // Facebook account or page ID
        pageId: XXXXXX,
        params: {
          fields: [
            'address',
            'birthday',
            'hometown',
          ],
        },
        // Access Token from facebook
        accessToken: 'XXXXXX',
      },
    },

I know I've got the access token right because w/o it facebook disappears from the graphiql panel.

Thanks in advance.enter image description here

1
Do any of these fields return anything and do you see any errors/warnings in the terminal when you run gatsby build? developers.facebook.com/docs/graph-api/reference/user - ksav
Nah, that's the issue, I see no returned data. No errors on build either. - Tom Hanks

1 Answers

0
votes

I figured it out, I needed to add the correct permissions to FB API.

enter image description here