Facebook Messenger for ReactJS with Typescript
npm install --save typescript-react-facebook-messenger
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 |
import * as React from "react";
import {MessengerCustomerChat} from "typescript-react-facebook-messenger";
class Example extends React.Component {
render () {
return (
<MessengerCustomerChat pageId="" appId=""/>
)
}
}
MIT © baorv