-
Notifications
You must be signed in to change notification settings - Fork 0
/
sand.html
39 lines (38 loc) · 1.38 KB
/
sand.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
<!DOCTYPE html>
<html>
<head>
<title>Facebook Sandbox</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="faceless.js"></script>
<script>
faceless.setting({
xfbml: true
}).permission({require: 'user_location'}).init().auth(function (response) {
console.log('Authorization Success');
console.log (response);
faceless.api ('me', function (response) {
console.log(response);
});
faceless.isLikedPage ('51620386454', function (response) {
console.log('Liked!');
console.log(response);
}, function (response) {
console.log('Not Liked');
console.log(response);
});
});
faceless.Event.subscribe('edge.create', function(url) {
console.log('Call Event', url);
if (url === 'https://facebook.com/rangsituniversity') {
ga('send', 'event', 'admchat57_RSU', 'facebook_rsu_fanpage_like_click');
}
if (url === 'http://www.dek-d.com/admissionchat/') {
ga('send', 'event', 'admchat57_RSU', 'facebook_admisssionchat_like_click');
}
});
</script>
<div class="fb-page" data-href="https://www.facebook.com/facebook" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/facebook"><a href="https://www.facebook.com/facebook">Facebook</a></blockquote></div></div>
</body>
</html>