Fb trigger

On the webhook page did you select page from the dropdown? It could be that n8n is not able to talk to Facebook properly to register the webhook but I would expect that to show an error.

I have something like this


Is that while n8n is spinning saying it is listening?

if I refresh the page when the workflow works, I have something like this

as I select one and click test then the webhook gets the information

That is a good sign and shows the webhook is registering, Although that says User at the top in the dropdown and you said you wanted a page.

Are you instead after an action one specific user is doing rather than an action on a page?

I’ve already changed that now is a page. I forgot to change after testing earlier

I marked subscriptions by hand

You shouldn’t need to change it by hand that can cause some problems, I guess the next step is to try and work out why facebook isn’t sending the request. Does the developer log show anything?

I returned as it was. Is it about activity logs?

Could be, I am not too sure on the Facebook side. If the test notification from Facebook worked though it could be that the Facebook app is not correctly listening to the page for events but that may require some help from the Facebook developer support.

I’ve solved this one - activate your workflow. Navigate to the webhooks page, change to page. click subscribe.

When you get the dialogue for the callback url, paste in the production webhook url and the access token from your credentials, then subscribe to the events you want.

That at least gets the production webhook working with test data - to recieve data, you need to add the app to your page:

Make a FB graph node, post to the subcribed_apps edge and make sur eyou have the pages_manage_metadata permission in the graph explorer.

Bit of a faff, but just wait… the data itself is really unhelpfully nested, so it gets worse!

@Jon any inspiration on how to sort the events? The switch node is not much help, as the “type” of event is inconsistently layered in the JSON.

In my head I’d set up a series of switches, but switch needs a consistent field name. Series of "If"s perhaps?

when I turn on the worflow with this Active slider, I also see what I showed. Interestingly, it is actually the same as in your screen, but there are more of these elements. while only one is subscribed. however, this does not change the fact that it does not download posts. can the fact that there is no token when editing a subscription on fb (when it is enabled) the reason that it does not work?

Do I have to subscribe to the fb page every time I turn on the same n8n automation?

Good question, I have a similar problem with fb trigger.

The URL couldn’t be validated. Callback verification failed with the following errors: HTTP Status Code = 404; HTTP Message = Not Found

I used this code:

To see which app’s your Page has installed, send a GET request instead:

Sample Request

curl -i -X GET "https://graph.facebook.com/{page-id}/subscribed_apps &access_token={page-access-token}

and I got that answer:
[
{
“link”: “https://www.facebook.com/games/?app_id=gsgdsfgghdfghfhfdhfgh”,
“name”: “add like and comment on page”,
“id”: “gfdsgdfgdfghgfdhfghgf”,
“subscribed_fields”: [
“feed”
]
}
]

The name of the application is correct, one thing that makes me wonder why is the address with the word games here? https://www.facebook.com/games/

Would you help solve this case? I have similar problems like @max_t

Did you find anything? because I got stuck