# How to trigger custom action when facebook button is clicked

**URL:** <https://forum.rasa.com/t/how-to-trigger-custom-action-when-facebook-button-is-clicked/14753>\
**Category:** Rasa Open Source\
**Created:** [August 24, 2019, 1:47pm UTC](https://forum.rasa.com/t/how-to-trigger-custom-action-when-facebook-button-is-clicked/14753 "2019-08-24T13:47:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thaasch](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thaasch/32/2726_2.png) [@thaasch](https://forum.rasa.com/u/thaasch)\
**Post date:** [August 24, 2019, 1:47pm UTC](https://forum.rasa.com/t/how-to-trigger-custom-action-when-facebook-button-is-clicked/14753/1 "2019-08-24T13:47:48Z")

</div>

Hello I´m currently trying to get a postback action from facebook to work. I managed to get the Chat to work but I cant figure out how to use the payload from a postback button. Is it possible to trigger a custom action from these buttons?

Currently the chat only prints the title of the button back into the chat and nothing happens.

---

<div class="post-metadata">

**Author:** ![thaasch](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thaasch/32/2726_2.png) [@thaasch](https://forum.rasa.com/u/thaasch)\
**Post date:** [August 24, 2019, 2:43pm UTC](https://forum.rasa.com/t/how-to-trigger-custom-action-when-facebook-button-is-clicked/14753/2 "2019-08-24T14:43:53Z")

</div>

Found the solution configure your Button like this:

```
  {
     "type":"postback",
     "title":"Buy",
     "payload":'/intent{"entity":"value"}'
  }
```
