Fuggz
Power Member
- Mar 25, 2010
- 606
- 613
Couple people asking for this lately. Will force user to share before they are allowed to get content/view video ect.
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:
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!
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(); }
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!