Problems to publish a Facebook message

Describe the problem/error/question

Trying to add to through N8N generates an error

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

{

“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
0,
0
],
“id”: “eae9f4c6-fe0a-4124-b9b5-3a4c97e8215c”,
“name”: “When clicking ‘Execute workflow’”
},
{
“parameters”: {
“httpRequestMethod”: “POST”,
“graphApiVersion”: “v23.0”,
“node”: “102359749606626”,
“edge”: “posts”,
“options”: {
“queryParameters”: {
“parameter”: [
{
“name”: “message”,
“value”: “test”
}
]
}
}
},
“type”: “n8n-nodes-base.facebookGraphApi”,
“typeVersion”: 1,
“position”: [
208,
0
],
“id”: “58c197c7-0255-4219-8f93-58db111a27ce”,
“name”: “Facebook Graph API”,
“credentials”: {
“facebookGraphApi”: {
“id”: “3FCscqL50sc4CDQo”,
“name”: “Facebook Graph account”
}
}
}
],
“connections”: {
“When clicking ‘Execute workflow’”: {
“main”: [
[
{
“node”: “Facebook Graph API”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “735b91c859c8888eea485c6a17356eedf23722753f4c688bd02eac5f9dc40c17”
}
}

Information on your n8n setup

  • n8n version: 2.8.3
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): node
  • Operating system: Rasperry Os (5)

@manuel4 try using the Send & Post parameters instead of query parameters:

Resource: Page
Operation: Create a Post
Page ID: 102359749606626
Message: test

This is cleaner than using raw query parameters.

Hi @manuel4

the error happens because you are trying to publish to a page using a user access token instead of a page access token.even if you are the page admin, meta strictly requires the token to belong to the page itself.

try this :

  1. go back to the meta graph api explorer.
  2. click the “token del usuario” dropdown.
  3. look under the “pages” (páginas) section and select your page: fede_official.
  4. generate a new token. this creates your actual page access token.
  5. paste that new token into your n8n credentials.

once you swap it, the node will instantly recognize your page id and publish the message.

hope this will help!

The issue is that you’re using a User Token instead of a Page Token, the screenshot shows “Token de usuario” which won’t work for posting to pages even if you’re the admin. In the Graph API Explorer you need to click that dropdown and select your page “Fede_official” under the pages section to generate an actual page access token, then use that token in your n8n credentials. The permissions you have look correct (pages_manage_posts is there), it’s just the wrong token type.