[FREE] Force share viral script. Share to view

Fuggz

Power Member
Joined
Mar 25, 2010
Messages
606
Reaction score
613
Couple people asking for this lately. Will force user to share before they are allowed to get content/view video ect.


Code:
<!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></title>
</head>
<body>

Add content HERE!

<div id="fb-root" class="fb_reset">
<script type="text/javascript">
//hd
window.fbAsyncInit = function() {
FB.init({appId: 'APP ID', 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: 'Top Blue Linkable Text Shared On user Wall',
caption: 'Add Caption Text Here',
description: ('Site Description HERE'),
href: 'http://www.YOUR-SITE.com',
media: [{ 'type': 'image', 'src': 'http://IMAGE-URL.com', 'href':'http://www.YOUR-SITE.com'}],
href: 'http://www.YOUR-SITE.com'
},
action_links: [
{ text: 'Add action Link text', href: 'www.YOUR-SITE.com' }
],
user_prompt_message: 'Message text'
},
function(response) {
if (response && response.post_id) {
window.location = "http://www.REDIRECT-AFTER-SHARE.com";
} else {
alert('You must share this to view content');
streamPublish();
}
});
}
</script>
<center>
<p align="center"></p>
<p align="center">
<img onclick="streamPublish()"
 src="IMAGE-CLICKED-FOR-POPUP.gif" border="0"></p>
<div
 style="position: relative; width: 400px; height: 100px;">
<div>
</div>
</div>
</center>
</div>
</body>
</html>


Change out your APP ID and pretty much customize all the places in CAPITAL font.

I suggest that you change out the APP ID, then run the script on a false account to see what gets posted, then change what you need.

There is no reason you should not be able to make $50 a day from this script easily, enjoy!

Edit:
Also, change this part up:

Code:
 function(response) { if (response && response.post_id) { window.location = "http://www.REDIRECT-AFTER-SHARE.com"; } else { alert('You must share this to view content'); streamPublish(); }
You can use javascript to do anything you can think of depending on if the user shares or does not. In this example if the user shares they are ridirected to your landing page with this code:

window.location = "http://www.REDIRECT-AFTER-SHARE.com";

or alerted to share before viewing with this code:

alert('You must share this to view content');

Let me know if you guys like this stuff and I will post many more in the future!
 
If you want this style:

http://bit.ly/v98xrc

Here you go:
(Virustotal is down)

index.php:
Code:
<?php

/*TITLE*/			$title="Most embarrassing moment ever in Beauty Contest";
/*DESCRIPTION*/		$desc="Poor girl makes the biggest mistake of her life on a live Beauty contest!!";
/*IMAGE*/			$image="http://3.bp.blogspot.com/-iiuhWAMHZAI/TpyZnWKukRI/AAAAAAAAAGg/WGS3L0oOrs0/s1600/01emba.gif";
/*AMUNG CODE*/		$amung="";
/*WEBSITE*/			$website="http://www.google.com/";
/*VIDEO*/			$video="video.php";
/*ADMIN*/			$admin="";

?>
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/"><!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"><!--NgL--><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://facebook.com/favicon.ico' rel='shortcut icon' type='image/x-icon'/>
  <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
 
<meta property="og:title" content="<?php echo $title;?>" />
<meta property="og:description" content="<?php echo $desc; ?>" />
<meta property="og:url" content="<?php echo $website;?>"/>
<meta property="og:image" content="<?php echo $image;?>" />
<meta property='fb:admins' content="<?php echo $admin;?>" />


<style>@charset "iso-8859-1";
/* CSS Document */
#navbar-iframe {
height:0px;
visibility:hidden;
display:none;
n.g.l
}
html{font-size:12px;font-family:Arial, Helvetica, sans-serif}
#topbar{display:block;margin-bottom:5px;background-color:#F1F1F1;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;padding:5px}
#topbar a{text-decoration:none;font-weight:700;color:#356AA0;margin-right:5px}
#topbar img{border:0;vertical-align:baseline;margin-right:5px}
#menu{float:right;width:300px;margin-right:5px}
#menu .bloc{border:1px #CCC solid;display:block;margin-bottom:5px}
#menu .bloc h2{display:block;font-size:12px;background-color:#F1F1F1;text-transform:uppercase;color:#333;border-bottom:1px #CCC solid;margin:0 0 5px;padding:5px}
#menu .bloc a{display:block;text-decoration:none;color:#356AA0;font-weight:700;margin:5px}
#menu .bloc a img{border:0;vertical-align:baseline;margin-right:20px}
#page{float:none;margin-top:50px;width:700px;margin-left:5px;min-height:600px}
.video{border:1px #CCC solid;width:160px;height:160px;float:none;margin:0 5px 5px 0}
.video .titre{display:block;color:#356AA0;text-decoration:none;font-weight:700;text-align:center;padding:5px}
.video .apercu{border:0;display:block;margin:5px auto auto}
.video p1{display:block;height:16px;padding-left:30px;background-repeat:no-repeat;background-position:5px 5px;padding-top:5px;color:#333;font-weight:700;margin:0 10px 0 5px}
.video p2{width:360px;text-align:left;color:#333;margin:5px}
.video img{width:96px;height:76px}
#page_par_page{border:1px #CCC solid;display:block;margin-bottom:5px;text-align:center;margin-right:6px;padding:10px}
#page_par_page a{text-decoration:none;padding-left:10px;padding-right:10px;color:#333}
#lecteur{display:block;width:640px;height:385px;margin:auto}
#footer{display:block;background-position:5px 5px;padding-left:5px;background-repeat:no-repeat;border-top:1px #CCC dotted}
#footer a{color:#356AA0;font-weight:700}
#videocontent{width:750px;margin-bottom:10px;float:none;text-align:justify}
#h1{margin-top:10px;margin-bottom:20px;padding-bottom:5px;font-size:12px;float:none;margin-left:0;padding-left:10px;width:500px;color:#999}
#content{width:750px}
#left{width:750px;float:none;text-align:left}
body{background:#FFF;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;margin:0}
#header2{ background: url(http://i.imgur.com/DdueR.png) top center no-repeat #3b5998; width:100%; height:40px;}
#youtube{margin-top:20px}
#topbar a:hover,#menu .bloc a:hover,.video .titre:hover,#footer a:hover{color:#D22D4F}
.facebook,.alert{display:block;width:500px;margin:10px 10px auto auto}
</style>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<title><?php echo $title;?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type='text/javascript'>
	var statement = 0;
	var _try = 0;
	function playtheMovie() {
		if (statement > 0) {
			if (this._try == 1) { playlavideo(); }
			else { alert('You must share the video to play it.'); }
		}
		if (statement == 0) {
			document.getElementById('restrictions').style.visibility='visible';
			statement++;	
		}
		}
</script>
<script type='text/javascript'>
	function ouvre(fichier) {
	 // ff=window.open(fichier,"n.g.lpopup","width=355px,height=205px,left=450%,ngltop=180%") 
	 ff=window.open(fichier,"popup","width=400px,height=250px,left=450%,top=180%") 
	  setTimeout('this._try = 1;', 4000);
	}
	function playMovie(_try) {
		if (this._try == 1) { playlavideo(); }
		else { alert('You must share the video to play.'); }	
	}
	function playlavideo(type) {
			{
             	window.location = "<?php echo $video;?>";
				}
	}
</script>
</head>
<body>
<div id="header2">
</div>
<div id="youtube"> 
<span style="display:block; width:750px; margin:auto;"><h2><?php echo $title;?></h2></span><br />             
	<div style="display:block; width:750px; margin:auto;"><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/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="<?php echo $website;?>" data-send="false" data-width="450" data-show-faces="false"></div>
<br /><br />
			<div id="videocontent">
				<div id="jwplayer1"></div>
				<div id="lavideo">
					<div align="left" style="background-image:url(http://i.imgur.com/MTCO5.jpg);width:560px;height:315px;overflow:hidden;" id="fontvideo">
						<h1 id="h1"><?php echo $title;?></h1>
						<div style="width:500px;height:200px;margin-left:20px;color:#FFF;">
							<br /><br />
							<div id="restrictions" style="visibility:hidden;">
								<a href="#" onClick="ouvre('http://www.facebook.com/sharer.php?u=<?php echo $website;?>');return false">
								<img src="http://img841.imageshack.us/img841/1229/gsrhtrhts.jpg" width="500" height="145" border="0"></a>
							</div>
						</div>
						<div style="float:left;width:100px;margin-top:10px;margin-left:7px;"><a href="#" onClick="playtheMovie();">
					<img src="http://i.imgur.com/T2Hsp.jpg" width="72" height="46" border="0"></a></div>
				</div>
				</div>
			</div>
	</div>
        <div class="facebook">
	        <div id="fb-root">
        	</div>
        </div>                                           
<br />				
<div style="display:block; width:750px; margin:auto; position:relative; right:5px; top:10px;">
<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/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-comments" data-href="<?php echo $website;?>" data-num-posts="6" canpost="true" data-width="640"></div>
</div>
	</div>
	<div style="clear:both;">
    </div>
    <div id="footer">
	<div style="opacity:0;filter:alpha(opacity=0);">
    </div>
    </div>
<div style="visibility:hidden;">
<script src="http://widgets.amung.us/small.js" type="text/javascript" width="0px"> 
</script><script type="text/javascript"> WAU_small('<?php echo $amung ?>')</script>
</div>
</html>

video.php:
Code:
<?php

/*TITLE*/			$title="Most embarrassing moment ever in Beauty Contest";

?>
<html>
<header>
<title>Video</title>
</header>
<style>
#header2{ background:#3b5998; width:100%; height:40px;}
div.b-mobile {display:none;}
#n.g.l
</style>
<link rel="openid.server" href="http://www.blogger.com/openid-server.g" />
<style>
div.b-mobile {display:none;}
</style>
<script type="text/javascript"
    src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">
</script>
</head><body  style=" overflow:hidden" background=url (http://i.imgur.com/om7zg.png)>


						
						
						
						<!-- CPA GATEWAY GOES HERE -->

						
						



<div id="header2">
</div>
 <br>
<div style="margin:10px auto; width:560px;">
<p>
<font size="5" face="arial" color="red">
<b><?php echo $title;?></b>
</font>
</p>
<br /><br /><br /><br /><br /><br />
<iframe width="560" height="315" src="http://www.youtube.com/embed/_VeI-_HGZB0?wmode=transparent" frameborder="0" allowfullscreen></iframe>
</div>
</body>
</html>
 
great shares man tx - But I also think people get confused between viral scripts this looks very similar to Js script I have which if used can get your account deleted.sometimes its hard to tell the difference.
 
I'm kinda noobish to FB since I left it almost 9 months ago - is this script for fanpage or external webpage hosted on my server?
 
great share but its not useful for new blogs since they have very less traffic and if they force them to share before viewing any content than those blogs will always be new in case of traffic....lolz..
 
Glad you guys are enjoying this!

It can be hosted on an external page, fanpage, wordpress or blogger, you just need a little bit of coding experience but it should all be straightforward!
 
Awesome share. :) I was actually looking for one of these. Very useful to go viral. :)
 
Yeah np! I appreciate the +rep from you, I am more likely to share these type things and personally help you out since you seem very appreciative!

I'm kinda noobish to FB since I left it almost 9 months ago - is this script for fanpage or external webpage hosted on my server?

Awesome share. :) I was actually looking for one of these. Very useful to go viral. :)
 
Back
Top