Skip to content

Commit

Permalink
added messenger chat plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
r-mikegester committed Jan 31, 2023
1 parent dd04bb0 commit 62cf314
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,38 @@
<body class="theme-first">

<div id="app"></div>
<div id="fb-root"></div>

<!-- Your Chat Plugin code -->
<div id="fb-customer-chat" class="fb-customerchat">
</div>

<script type="module" src="/src/main.js"></script>
<script type="module" src="./node_modules/preline/dist/preline.js"></script>
<!-- Messenger Chat Plugin Code -->
<script>
var chatbox = document.getElementById('fb-customer-chat');
chatbox.setAttribute("page_id", "102894534417114");
chatbox.setAttribute("attribution", "biz_inbox");
</script>

<!-- Your SDK code -->
<script>
window.fbAsyncInit = function () {
FB.init({
xfbml: true,
version: 'v15.0'
});
};

(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>

</html>

1 comment on commit 62cf314

@vercel
Copy link

@vercel vercel bot commented on 62cf314 Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mikegester – ./

mikegester-mikegester.vercel.app
mikegester.vercel.app
mikegester-git-main-mikegester.vercel.app

Please sign in to comment.