-
Notifications
You must be signed in to change notification settings - Fork 0
/
open.html
67 lines (57 loc) · 1.83 KB
/
open.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
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<meta property="fb:app_id" content="369466053131869" />
<meta property="og:type" content="laquesigue:cancion" />
<meta property="og:url" content="http://www.laquesigue.com" />
<meta property="og:title" content="Cancion de Artista" />
<meta property="og:image" content="http://www.laquesigue.com/images/album.png" />
<script src="//connect.facebook.net/en_US/all.js"></script>
<title>Votar</title>
<script type="text/javascript">
function votar()
{
FB.api(
'/me/laquesigue:cancion',
'post',
{ votar: 'http://www.laquesigue.com' },
function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Cook was successful! Action ID: ' + response.id);
}
});
}
</script>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '369466053131869', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
<h3>Votar</h3>
<p>
<img title="Voto"
src="http://www.laquesigue.com/images/album.png"
/>
</p>
<br>
<form>
<input type="button" value="Votar" onclick="votar()" />
</form>
</body>
</html>