How to post Facebook Page using the Facebook Graph API node?

Describe the issue/error/question

When trying to post to my company Facebook page using the Graph API, I am getting the following error:
(#200) If posting to a group, requires app being installed in the group, and \ either publish_to_groups permission with user token, or both pages_read_engagement \ and pages_manage_posts permission with page token; If posting to a page, \ requires both pages_read_engagement and pages_manage_posts as an admin with \ sufficient administrative permission

I have verified that the app has the right permissions in the developer portal.

I’m wondering if anyone here has any experience using N8N + the Facebook Graph API to post messages to a Page, and if so what am I doing wrong?

Please share the workflow

Information on your n8n setup

  • n8n version: 0.196.0
  • Database you’re using (default: SQLite): Postgres
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Kubernetes

Hey all, I answered my own question.

Turns out I was looking in the wrong area for where to adjust the permissions.

It’ s not the app permissions that needed adjusting but the token in the Facebook Graph API Explorer.

Not only did I need to add the missing permissons here, but I also needed to copy the Page Token instead of the User Token.

Hope this helps someone else.

Thanks,

4 Likes

Thanks so much for confirming @joeldeteves and for sharing your solution! Tbh, the Facebook API really is confusing, I always panic when questions around it pop up :smiley:

1 Like

Hey @joeldeteves, thanks for sharing your solution. I try to post to my Facebook Page, but it’s really confusing :grinning:

Could you please explain how to properly fill in the data in: Query Parameters Name Value or should I use different approach? :slight_smile:

1 Like

Hello,
I would like to leave you a message because I have the same error.
I would like to post on my groups instead of my pages
I have the same error
However, I have my correct authorizations but I just need to add my app to my group. Except that the app is not published because it is for personal use.
Do you have any idea how to solve my problem?

Hello,
I would like to leave you a message because I have the same error.
I would like to post on my groups instead of my pages
I have the same error
However, I have my correct authorizations but I just need to add my app to my group. Except that the app is not published because it is for personal use.
Do you have any idea how to solve my problem?