-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
93 lines (83 loc) · 2.61 KB
/
Copy pathindex.php
File metadata and controls
93 lines (83 loc) · 2.61 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Facebook Album</title>
<link rel="stylesheet" type="text/css" href="asset/css/normalize.css">
<link rel="stylesheet" type="text/css" href="asset/css/foundation.css">
<link type="text/css" rel="stylesheet" href="asset/css/fbalbum.css">
<script src="asset/js/vendor/modernizr.js"></script>
<script src="asset/js/vendor/jquery.js"></script>
<script src="asset/js/foundation.min.js"></script>
<script>
$(document).foundation();
$(document).ready(function() {
$.ajaxSetup({cache : true,cookie : true,oauth : true});
$.getScript('//connect.facebook.net/en_UK/all.js', function() {
FB.init({appId : '209721652515800'});
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
$.post("service/SetToken.php", {"provider" : 'facebook',"accessToken" : response.authResponse.accessToken}, function() {
window.location.href = "home.php";
});
}
});
});
$(".fbstyle").click(function() {
FB.login(function(response) {
if (response.authResponse) {
var authResponse=response.authResponse;
FB.api('/me', function(response) {
$.post("service/SetToken.php", {"provider" : 'facebook',"accessToken" :authResponse.accessToken}, function() {
window.location.href = "home.php";
});
});
}
}, {scope : 'email,user_photos'})
});
});
</script>
</head>
<body>
<div class="off-canvas-wrap">
<div class="inner-wrap">
<title>Facebook Album</title>
<nav class="top-bar" data-topbar="">
<ul class="title-area">
<li class="name">
<h1><a href="#">Facebook</a></h1>
</li>
</ul>
</nav>
<section id="homepage-hero">
<div class="row">
<div class="medium-7 large-6 columns">
<h1>Facebook Album</h1>
<br>
<h3>Download your Facebook albums
<br class="hide-for-small">
and move it to picasa.</h3>
<br>
</div>
</div>
<div class="row">
<div class="large-4 medium-6 columns">
<button class="large button hide-for-small fbstyle">
Connect with facebook
</button>
<button class="small button show-for-small fbstyle">
Connect with facebook
</button>
</div>
</div>
<div class="floatingyeti">
<img src="asset/img/Facebook_like_thumb.png">
</div>
</section>
<a class="exit-off-canvas"></a>
</div>
</div>
</body>
</html>