-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
55 lines (49 loc) · 1.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!--
Copyright 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
-->
<html>
<head>
<title>Messenger Demo</title>
</head>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId: 'YOURAPPID',
xfbml: true,
version: 'v2.6'
});
};
(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/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<h1>Messenger Demo</h1>
<div>
<p>The "Send to Messenger" plugin will trigger an authentication callback to your webhook.</p>
<div class="fb-send-to-messenger"
messenger_app_id='YOURAPPID'
page_id='YOURPAGEID'
data-ref="PASS_THROUGH_PARAM"
color="blue"
size="standard">
</div>
</div>
<div>
<p>The "Message Us" plugin takes the user directly to Messenger and into a thread with your Page.</p>
<div class="fb-messengermessageus"
messenger_app_id='YOURAPPID'
page_id='YOURPAGEID'
color="blue"
size="standard">
</div>
</div>
</body>
</html>