typescript-react-facebook-messenger
v0.0.4
Published
Facebook Messenger for ReactJS with Typescript
Downloads
23
Maintainers
Readme
typescript-react-facebook-messenger
Facebook Messenger for ReactJS with Typescript
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