Yoctol / react-messenger-customer-chat

React component for messenger customer chat plugin
MIT License
272 stars 69 forks source link

Prop to show a welcome message #94

Open belkocik opened 3 years ago

belkocik commented 3 years ago

Hello, what is the prop for showing a welcome message in the start? like here? image I tried the following and it only opens the chat.

  loggedInGreeting="You can chat with me at any time, I am here to help."
            loggedOutGreeting="You can chat with me at any time, I am here to help."
            greetingDialogDisplay="show"
            shouldShowDialog = "true"
chentsulin commented 3 years ago

Hi @bubuq3 I believe the loggedInGreeting prop will do the trick.

<MessengerCustomerChat
  pageId="1895382890692545"
  appId="215971755540323"
  loggedInGreeting="You can chat with me at any time, I am here to help."
 />
截圖 2021-08-22 上午12 37 34
belkocik commented 3 years ago

Thank you for your reply. I mean when I enter the page, how to show this greeting instead of clicking on this messenger's bubble and there is this message.

chentsulin commented 3 years ago
<MessengerCustomerChat
  pageId="1895382890692545"
  appId="215971755540323"
  shouldShowDialog
  loggedInGreeting="You can chat with me at any time, I am here to help."
/>

See if shouldShowDialog works in your case.