gatsby-plugin-facebook-customer-chat
v1.0.2
Published
Gatsby plugin to integrate Facebook Javascript SDK on your project.
Downloads
6
Readme
gatsby-plugin-facebook-customer-chat
Forked from (drakang4/gatsby-plugin-facebook-sdk)[https://github.com/drakang4/gatsby-plugin-facebook-sdk]
Gatsby plugin to integrate Facebook Javascript SDK and Facebook Customer Chat Plugin on your project.
Install
npm install --save gatsby-plugin-facebook-customer-chat
or yarn add gatsby-plugin-facebook-customer-chat
How to use
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-facebook-customer-chat`,
options: {
sdk: {
appId: 'your-app-id',
...
},
chat: {
pageId: 'your-page-id',
loggedInGreeting: 'Hi! How can I help you?',
loggedOutGreeting: 'Hi! How can I help you?',
}
},
},
];
Configuration
You can find all initialization options in official Facebook SDK reference.