# Fb trigger

**URL:** <https://community.n8n.io/t/fb-trigger/15434>\
**Category:** Questions\
**Tags:** trigger, facebook\
**Created:** [July 4, 2022, 7:31am UTC](https://community.n8n.io/t/fb-trigger/15434 "2022-07-04T07:31:44Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 5, 2022, 10:31am UTC](https://community.n8n.io/t/fb-trigger/15434/21 "2022-07-05T10:31:27Z")

</div>

Hey @Max_T,

That error would suggest you have not got an app token from Facebook and are instead using a user or page token.

On this page : [Graph API Explorer - Facebook for Developers](https://developers.facebook.com/tools/explorer/) where it says user or page token select App and that should do the job.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 5, 2022, 10:55am UTC](https://community.n8n.io/t/fb-trigger/15434/22 "2022-07-05T10:55:24Z")

</div>

So instead of the token I put in, I would need an application token right

or am i using the wrong type of app?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 5, 2022, 11:28am UTC](https://community.n8n.io/t/fb-trigger/15434/23 "2022-07-05T11:28:05Z")

</div>

Should just need an application token.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 6, 2022, 11:10am UTC](https://community.n8n.io/t/fb-trigger/15434/24 "2022-07-06T11:10:36Z")

</div>

I put the toke app and the error is gone. I wanted it to download information about a recently added post. however, something did not work. I don’t really know why.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 6, 2022, 11:17am UTC](https://community.n8n.io/t/fb-trigger/15434/25 "2022-07-06T11:17:27Z")

</div>

If you are using the trigger it will only run after something has happened it won’t fetch historical likes, I am not sure if you need to do something on the Facebook side to link the app to a specific page though.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 6, 2022, 1:16pm UTC](https://community.n8n.io/t/fb-trigger/15434/26 "2022-07-06T13:16:08Z")

</div>

as I checked in applications, this application is visible in connections to the profile and can download data from the website. I wonder what is wrong.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 8, 2022, 8:40am UTC](https://community.n8n.io/t/fb-trigger/15434/27 "2022-07-08T08:40:04Z")

</div>

I did tests on the fb test page ([Graph API Explorer - Facebook for Developers](https://developers.facebook.com/tools/explorer/)) and it is not a matter of fb application but wrong settings in n8n trigger. Can you help me configure this trigger to download posts?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 8, 2022, 9:31am UTC](https://community.n8n.io/t/fb-trigger/15434/28 "2022-07-08T09:31:15Z")

</div>

Hey @Max_T,

When you add the app to n8n and click listen to test events if you check in the Facebook developer console do you see the event as being subscribed to like this…

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/7/798401d5439b490c6abcbcff04f37df39cc82531.png)

Are you also remembering to use a Facebook test user account? Apps don’t have access to live data until deployed.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 8, 2022, 11:57am UTC](https://community.n8n.io/t/fb-trigger/15434/29 "2022-07-08T11:57:43Z")

</div>

unfortunately it does not look like that. I do it from the account with the website, profile and this is for testing and the fb applications will then be removed

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 8, 2022, 12:00pm UTC](https://community.n8n.io/t/fb-trigger/15434/30 "2022-07-08T12:00:40Z")

</div>

Overall, I was able to add posts, relate them and comment on them. the lack of just that for him to start detecting new posts using the Facebook trigger

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 8, 2022, 12:32pm UTC](https://community.n8n.io/t/fb-trigger/15434/31 "2022-07-08T12:32:32Z")

</div>

I suspect the issue is going to be with the setup on Facebook, From the developer portal where you create the app (not the app token) there is a section on the left for webhooks assuming you added it as a service. In there you will see what is registered.

Once that part is done it will be a case of adding the app to a page so it can work although it may use your users setting assuming you are the page admin. From there once you are happy with how it works from the Facebook test user you can publish it and use it with the live data.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 8, 2022, 12:37pm UTC](https://community.n8n.io/t/fb-trigger/15434/32 "2022-07-08T12:37:47Z")

</div>

so I would have to use a webhook instead of a trigger?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 8, 2022, 12:52pm UTC](https://community.n8n.io/t/fb-trigger/15434/33 "2022-07-08T12:52:26Z")

</div>

The trigger creates a webhook in Facebook when activated or listening for a test event so you shouldn’t need to manually do that. You can check if this part is working by checking the app in Facebook and seeing if the webhook has been registered while it is running.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 8, 2022, 1:13pm UTC](https://community.n8n.io/t/fb-trigger/15434/34 "2022-07-08T13:13:10Z")

</div>

the webhook did not come into being, so it did not connect

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 8, 2022, 1:46pm UTC](https://community.n8n.io/t/fb-trigger/15434/35 "2022-07-08T13:46:09Z")

</div>

That could be one part of your issue, When you checked was the workflow active / enabled in n8n or did you manually click Execute Workflow?

In the Facebook webhook did you remember to change the dropdown to Page as well?

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 11, 2022, 10:49am UTC](https://community.n8n.io/t/fb-trigger/15434/36 "2022-07-11T10:49:24Z")

</div>

I manually clicked to test whether it would react to the new post at all. unfortunately nothing happened

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 11, 2022, 11:24am UTC](https://community.n8n.io/t/fb-trigger/15434/37 "2022-07-11T11:24:37Z")

</div>

Was that a test in the Facebook developer portal for the registered webhook?

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 11, 2022, 11:27am UTC](https://community.n8n.io/t/fb-trigger/15434/38 "2022-07-11T11:27:52Z")

</div>

no, I meant that I manually started the automation so that it waited for information from facebook about the new post.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [July 11, 2022, 11:31am UTC](https://community.n8n.io/t/fb-trigger/15434/39 "2022-07-11T11:31:55Z")

</div>

ok so maybe we need to go back a few questions, When you click execute in n8n does it show up under Webhooks for “App” in the Facebook Developer console?

If it does show in there while the n8n page is still waiting for connections when you go to do a test like on a page are you doing it from a test account in the Facebook developer portal or have you already published your app so that it is able to work with live data? If it is published and allowed to work with live data did you add the app to your Facebook page or are you trying to read the data on a page that you are not an admin on?

It is important that you answer each part of this so we can try and resolve this one quickly.

---

<div class="post-metadata">

**Author:** ![Max\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/max_t/32/14649_2.png) [@Max\_T](https://community.n8n.io/u/Max_T)\
**Post date:** [July 11, 2022, 12:37pm UTC](https://community.n8n.io/t/fb-trigger/15434/40 "2022-07-11T12:37:11Z")

</div>

> [@Jon](#):
>
> ok so maybe we need to go back a few questions, When you click execute in n8n does it show up under Webhooks for “App” in the Facebook Developer console?
> 
> If it does show in there while the n8n page is still waiting for connections when you go to do a test like on a page are you doing it from a test account in the Facebook developer portal or have you already published your app so that it is able to work with live data? If it is published and allowed to work with live data did you add the app to your Facebook page or are you trying to read the data on a page that you are not an admin on?

I do not know if I understand correctly. for the fb application it is live (the slider is set to live). the application is visible on the fb page. while n8n is pressed execute workflow. Unfortunately, the webhook on fb is still not visible.

[Previous page](https://community.n8n.io/t/fb-trigger/15434.md?page=1)

[Next page](https://community.n8n.io/t/fb-trigger/15434.md?page=3)
