facebook forced-share

Status
Not open for further replies.

OneEightSeven

Registered Member
Joined
Oct 25, 2011
Messages
56
Reaction score
6
yho guys, i asked in an other thread for help, and the User Fuggz telled me to go in the Hire Section, i need a "Forced Share" for my Facebook-Fan-Page, ya know what i mean ?

Here from my First Post..

"I wrote this Post cause i created a Facebook-Page about a Videogame, and i think with the right Actions i can get enough traffic to make Money.

I use Hyperpress TabArts, and the People can only See the Stuff Inside when they Like the Page, but i want to make that they must "Share" the Page, and klick on my Spon. ads Banner.. "

Is there Anybody who can help me for Free?

I Can make some Things for you, if you tell me what i have to do :D
 
youre guys are sooo great, im so happy. i send a pm to blackhatcodex
 
i must make 15 Posts, sorry, i don't wanna spam right now :D
 
grml, now i can send pm's and they are offline :( i'm worry :(
 
Wow,then wait for them.any chance on your awesome plan for me?
Willing to help.
 
Basically I gave you the script earlier, the only reason I cannot help any further is because it would be basically doing everything for you and I just do not have the time to do that right now. Here is what you will want:

<!DOCTYPE html>
<html
xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
</head>
<body>

YOUR CONTENT WILL GO HERE

<div id="fb-root" class="fb_reset">
<script type="text/javascript">
//hd
window.fbAsyncInit = function() {
FB.init({appId: 'Your 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: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.' },
function(response) {
if (response && response.post_id) {
alert('Post was published.');
}
else {
alert('Post was not published.'); } } );
</script>
<img onclick="streamPublish()"
src="share.png" border="0">
</body>
</html>
Just add your App ID, then name, link, caption, description. The share.png will be the button that is pressed to trigger the dialogue or just use something like window.onload.

Where it say's:

Code:
function(response) {     if (response && response.post_id) {       alert('Post was published.');     } else {       alert('Post was not published.');     }
You can change switch the alert to a redirect after the user shares and only if the user shares, otherwise have it say "Must share to continue" where it says "Post was not published."

I absolutely do not have any idea how to better explain it without doing it all myself, if you cannot figure it out from here I really do not know what to say.
 
Last edited:
i must say, that i didnt understand it, i'm very sorry, but i try maa best, like i said, my English is not so well, and its very difficult for me, cause i'm new, but thank you, you rock!!!
 
Can Someone Explain me what i have to do with this script ?

I must Copy that in the Static FBML App, right?

and then? i don't know where i must add the "Caption(and i don't know what it is)"

yes i'm a noob, sorry.
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top