Last active
February 11, 2019 04:48
-
-
Save jansila/71455ed67ca97621dfceb327c794e2f7 to your computer and use it in GitHub Desktop.
webchat plugin attempt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <head> | |
| </head> | |
| <script> | |
| window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId : '210090072943719', | |
| autoLogAppEvents : true, | |
| xfbml : true, | |
| version : 'v3.0' | |
| }); | |
| console.log("A"); | |
| console.log(FB); | |
| FB.CustomerChat.showDialog(); | |
| FB.CustomerChat.update({ | |
| logged_in_greeting: 'Hello There!', | |
| logged_out_greeting: 'Log in to Chat with Us', | |
| ref: 'coupon_15' | |
| }); | |
| console.log("B"); | |
| }; | |
| (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 = "//connect.facebook.net/cs_CZ/sdk/xfbml.customerchat.js"; | |
| fjs.parentNode.insertBefore(js, fjs); | |
| }(document, 'script', 'facebook-jssdk')); | |
| </script> | |
| <body > | |
| <div id="chat" class="fb-customerchat" | |
| messenger_app_id="210090072943719" | |
| ref="default_ref" | |
| page_id="233641140739847"> | |
| </div> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment