forked from jmcglone/jmcglone.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.html
66 lines (53 loc) · 1.5 KB
/
comment.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
56
57
58
59
60
61
62
63
64
65
---
layout: default
title: App
notes: passive
contact: passive
description: Comment deleting
---
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{567476727258473}',
cookie : true,
xfbml : true,
version : '{v7.0}'
});
FB.AppEvents.logPageView();
};
(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.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}
<fb:login-button
scope="public_profile,email"
onlogin="checkLoginState();">
</fb:login-button>
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
</script>
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v7.0&appId=567476727258473&autoLogAppEvents=1" nonce="bAe9ZKdp"></script>
<div class="fb-login-button"
data-size="small" data-button-type="login_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="true" data-width="">
</div>
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
</body>