-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
115 lines (86 loc) · 2.88 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />
<title>jQuery Facebook Streaming - bachors.com</title>
<!-- Custom your style -->
<link type="text/css" rel="stylesheet" href="src/css/facebook-stream.css" />
<!-- Demo -->
<style>
body {
background: #f5f5f5;
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}
.demo{
display: inline-table;
width: calc(50% - 200px);
padding: 100px;
padding-top: 20px;
margin: 0px;
}
#groups, .fanspage{
padding: 0px;
margin: 0px;
width: 100%;
}
@media only screen and (min-width: 960px) and (max-width: 1045px) {
.demo {
width: calc(50% - 80px);
padding: 40px;
}
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
.demo {
width: calc(50% - 60px);
padding: 30px;
}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
.demo {
display: block;
width: 350px;
margin: 40px auto;
}
}
@media screen and (max-width:479px){
.demo {
display: block;
width: calc(100% - 20px);
padding: 10px;
}
}
</style>
</head>
<body>
<div class="demo">
<h1>Fans Page</h1>
<div class="fanspage"></div>
</div><div class="demo">
<h1>Groups</h1>
<div id="groups"></div>
</div>
<a href="https://github.com/bachors/jQuery-Facebook-Stream" target="_BLANK"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<!-- Include jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Include jquery.ibacor-fb-streaming -->
<script src="src/js/facebook-stream.js"></script>
<!-- Configuration your facebook_id & facebook_access_token -->
<script>
$(document).ready(function(){
// Example by className
$(".fanspage").facebook_stream(
fb_id = 150096141782295, // example your Groups_id or FansPage_id. Find your facebook_id in http://ibacor.com/tools/social-media-user-id-finder
fb_limit = 3, // max 25
fb_token = 'API KEY' // you can get it in https://developers.facebook.com/docs/apps
);
// Example by id
$("#groups").facebook_stream(
fb_id = 35688476100, // example your Groups_id or FansPage_id. Find your facebook_id in http://ibacor.com/tools/social-media-user-id-finder
fb_limit = 3, // max 25
fb_token = 'API KEY' // you can get it in https://developers.facebook.com/docs/apps
);
});
</script>
</body>
</html>