React Messenger Send To Messenger
React component for Messenger send to Messenger plugin
Screenshot
Prerequisite
Whitelist your domain to connect your Facebook Page to your website via the Facebook tool.
- From UI: Facebook Page Settings > Messenger Platform > Whitelisted Domains
- From API: Use HTTP API or API client likes messaging-api-messenger
Installation
npm install react-messenger-send-to-messenger
Usage
;;; ReactDOM;
Note: It will handle sdk initialize automatically for you. See more details in fbsdk official docs.
Props
static propTypes = pageId: PropTypesstringisRequired appId: PropTypesstringisRequired dataRef: PropTypesstring color: PropTypesstring size: PropTypesstring enforceLogin: PropTypesbool ctaText: PropTypes autoLogAppEvents: PropTypesbool xfbml: PropTypesbool version: PropTypesstring language: PropTypesstring debug: PropTypesbool; static defaultProps = dataRef: undefined color: 'blue' size: 'large' enforceLogin: false ctaText: undefined autoLogAppEvents: true xfbml: true version: '2.11' language: 'en_US' debug: false;
Related
- react-messenger-customer-chat - React component for messenger customer chat plugin.
- react-messenger-checkbox - React component for messenger checkbox plugin.
- react-messenger-message-us - React component for messenger message us plugin.
- messaging-api-messenger - Messaging APIs for Messenger.
- bottender - Make Bots in Your Way, Fast and Flexibly.
License
MIT © Yoctol