Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Facebook Share to Unlock</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
function shareOnFB() {
FB.ui({
method: "feed",
link: "https://developers.facebook.com",
picture: "http://img.interia.pl/biznes/nimg/j/t/Unijny_Trybunal_Kozy_owce_6258296.jpg",
name: "tytuł",
caption: 'w sumie to nie wiem',
description: "opis"
}, function(t){
var str = JSON.stringify(t);
var obj = JSON.parse(str);
if(obj.post_id != '')
{
var secret_data = "<center><a href='http://zarabiam.com'>PRZEJDŹ DALEJ</a></center><meta http-equiv='refresh' content='0; URL=http://zarabiam.com'>";
jQuery("#results").html(secret_data);
}
});
}
</script>
</head>
<body style="background:#ccc;">
<center>
</center>
<div style="background:#fff; width:60%; margin:0 auto; padding:20px;">
<center><h1 style="padding:0; margin:0;">Facebook Share to Unlock</h1></center>
<br />
<br/><br/>
<div id="results">
<center><p>Udostępnij aby przejść dalej</p></center>
<center>
<img onclick="shareOnFB();" style="cursor:pointer" src="https://d1wofkmqsniyp0.cloudfront.net/public/v2.0/imgs/fbshare.png">
</center>
</div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=ID_APLIKACJI&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</body>
</html>