Skip to content

baorv/typescript-react-facebook-messenger

Repository files navigation

typescript-react-facebook-messenger

Facebook Messenger for ReactJS with Typescript

Build Status NPM JavaScript Style Guide

Install

npm install --save typescript-react-facebook-messenger

Properties

Property Data type Required Feature
pageId string true
appId string true
shouldShowDialog boolean false
htmlRef string false
minimized boolean false
themeColor string false
loggedInGreeting string false
loggedOutGreeting string false
greetingDialogDisplay string false
greetingDialogDelay number false
autoLogAppEvents boolean false
xfbml boolean false
version string false
language string false
onCustomerChatDialogShow Func false
onCustomerChatDialogHide Func false

Usage

import * as React from "react";
import {MessengerCustomerChat} from "typescript-react-facebook-messenger";

class Example extends React.Component {
  render () {
    return (
      <MessengerCustomerChat pageId="" appId=""/>
    )
  }
}

License

MIT © baorv