0

I want to show a greeting message when start a conversation on Facebook Messenger ( before any user input ) . How to do it?
The problem is : My code is for server by NodeJS ,and it only trigger when a message is send to server ,which mean it only be triggered when users send something.
Facebook messenger doesn't send anything when you press button "Message". I have check this link Messenger Greeting , but it only shows when a new user starts chat ,but i need show it when starting conversations

voxter
  • 853
  • 2
  • 14
  • 30

2 Answers2

3

You have to set a welcome message, using the Facebook Api. Find the documentation here: https://developers.facebook.com/docs/messenger-platform/implementation#welcome_screen

As explained in the documentation, you have to make a POST request to https://graph.facebook.com/v2.6/<PAGE_ID>/thread_settings?access_token=<PAGE_ACCESS_TOKEN>

You need to make the POST request only once, then Facebook will automatically prompt your welcome message whenever a user starts a chat.

j0k
  • 22,600
  • 28
  • 79
  • 90
sabrina
  • 1,567
  • 2
  • 12
  • 15
  • The Welcome Screen only appears for new conversations. On mobile, deleting conversations will not cause the Welcome Screen to appear again. On desktop web, if you delete the conversation, you can make the Welcome Screen appear again – voxter Jun 18 '16 at 15:56
  • Welcome Screen should appear on both mobile and desktop web when we delete conversations and start new one.??Can be other ways ?? – voxter Jun 18 '16 at 15:57
2

I wrote and answer for this question here.

Have a nice working ;)

Community
  • 1
  • 1
Omera
  • 71
  • 5