-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfb-wall-view.php
177 lines (156 loc) · 5.38 KB
/
fb-wall-view.php
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="HTML5 Template" />
<meta name="description" content="Webmin - Bootstrap 4 & Angular 5 Admin Dashboard Template" />
<meta name="author" content="potenzaglobalsolutions.com" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Facebook posts</title>
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico" />
<!-- Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:200,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900">
<!-- css -->
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
</head>
<body>
<!--=================================
wrapper -->
<div class="content-wrapper profile-page">
<div class="page-title">
<div class="container">
<!-- User Info -->
<div class="row">
<div class="col-lg-12 mb-30">
<div class="card">
<div class="card-body">
<div class="user-bg" style="background: url(../assets/images/user-bg.jpg);">
<div class="user-info">
<div class="row">
<div class="col-lg-6 align-self-center">
<div class="user-dp"><img src="<?php echo $_SESSION['fbProfilePicture'];?>" alt="No image found"></div>
<div class="user-detail">
<h2 class="name"><?php echo $_SESSION['fbUserName']; ?></h2>
<p class="designation mb-0">Facebook ID : <?php echo $_SESSION['fbUserId']; ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h3 class="mb-0">Reading Your Facebook Feeds</h3><br/>
</div>
</div>
</div>
</div>
<?php
/**
* Display User feed posts content
*/
if (! empty($posts)) {
foreach ($posts as $k => $v) {
$postDate = date("d F, Y", strtotime($posts[$k]["created_time"]))
?>
<?php if ($posts[$k]["attach_type"] == ''){
?>
<!-- main body -->
<div class="container">
<div class="row">
<div class="col-md-12 mb-30">
<div class="card card-statistics h-100">
<div class="card-body">
<h5 class="card-title">Posted Message</h5>
<h4><?php if(!empty($posts[$k]["message"])) { echo $posts[$k]["message"]; } ?></h4>
<p><strong>Post Date </strong><?php echo $postDate; ?></p>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php if ($posts[$k]["attach_type"] == 'profile_media') {
?>
<!-- main body -->
<div class="container">
<div class="row">
<div class="col-md-12 mb-30">
<div class="card card-statistics h-100">
<div class="card-body">
<h5 class="card-title">Updated Profile Picture</h5>
<center><a href="<?php echo $posts[$k]['attach_link']; ?>"><img src="<?php echo $posts[$k]['attach_image'];?>" height="450" weight="450" alt="Image not available" style="border:1px solid black"/></a></center>
<p><?php if(!empty($posts[$k]["message"])) { echo $posts[$k]["message"]; } ?></p>
<p><strong>Post Date </strong><?php echo $postDate; ?></p>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php if ($posts[$k]["attach_type"] == 'photo') {
?>
<!-- main body -->
<div class="container">
<div class="row">
<div class="col-md-12 mb-30">
<div class="card card-statistics h-100">
<div class="card-body">
<h5 class="card-title">Uploaded Picture</h5>
<center><a href="<?php echo $posts[$k]['attach_link']; ?>"><img src="<?php echo $posts[$k]['attach_image'];?>" height="450" weight="450" alt="Image not available" style="border:1px solid black"/></a></center>
<p><?php if(!empty($posts[$k]["message"])) { echo $posts[$k]["message"]; } ?></p>
<p><strong>Post Date </strong><?php echo $postDate; ?></p>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<!--=================================
wrapper -->
<?php
}
}
?>
</div>
<!--=================================
jquery -->
<!-- jquery -->
<script src="assets/js/jquery-3.3.1.min.js"></script>
<!-- plugins-jquery -->
<script src="assets/js/plugins-jquery.js"></script>
<!-- plugin_path -->
<script>var plugin_path = 'assets/js/';</script>
<!-- chart -->
<script src="assets/js/chart-init.js"></script>
<!-- calendar -->
<script src="assets/js/calendar.init.js"></script>
<!-- charts sparkline -->
<script src="assets/js/sparkline.init.js"></script>
<!-- charts morris -->
<script src="assets/js/morris.init.js"></script>
<!-- datepicker -->
<script src="assets/js/datepicker.js"></script>
<!-- sweetalert2 -->
<script src="assets/js/sweetalert2.js"></script>
<!-- toastr -->
<script src="assets/js/toastr.js"></script>
<!-- validation -->
<script src="assets/js/validation.js"></script>
<!-- lobilist -->
<script src="assets/js/lobilist.js"></script>
<!-- custom -->
<script src="assets/js/custom.js"></script>
</body>
</html>