Help In N8N

Facebook Graph API Post Fails with “Post Is Empty” (Error 400) in n8n

Describe the problem/error/question

Hi everyone,
I’m trying to create an automated Facebook Page post using the HTTP Request node in n8n with the Facebook Graph API.
My setup:
Method: POST
URL: https://graph.facebook.com/v22.0/PAGE_ID/feed
Query Parameters:
message = Test post from n8n
access_token = Page Access Token

What is the error message (if any)?

I have confirmed:

  • The Page ID is correct

  • The access token is a valid Page Access Token

  • The token is not expired

It still says the post is empty even though the message parameter is filled.

Has anyone faced this issue before?
Is there something wrong with sending the message as a query parameter instead of in the body?

Any guidance would be appreciated. Thanks!

This Is the work flow

Parameter

Hi @jointman , welcome to the n8n community :tada: !
The issue is that “message” is being sent as a query parameter. For this endpoint, it needs to be in the POST body. Move it to the body and keep the access token in the query or header.

1 Like

Yeah move message out of query params and into the body as form-urlencoded, Facebook requires post content in the body not the URL. Keep access_token in query params, that one’s fine there.

1 Like

Yeah move message out of Query Parameters and into the Body section instead, set the content type to form data. Facebook’s API expects POST data in the body not the URL, so it’s seeing an empty post even though you filled in the field. Keep access_token where it is, just move message.

Hope this helps! Just wanted to add a bit more detail to my reply!