typescript-react-facebook-messenger
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i typescript-react-facebook-messenger

Weekly Downloads

17

Version

0.0.4

License

MIT

Unpacked Size

66.7 kB

Total Files

9

Last publish

Collaborators

  • roanvanbao