Was ist neu?
Digital Marketing & Webmaster Forum

Digital Marketing, Internet-Technologien, Metaverse und mehr interessieren Dich? Registriere Dich gleich kostenlos, um Mitglied zu werden! Sobald Du angemeldet bist, kannst Du loslegen, Themen und Beiträge veröffentlichen und mit anderen Mitgliedern in Kontakt treten! Wir wünschen Dir einen anregenden Austausch!

FB Forced Share

OneEightSeven

Neues Mitglied
Hallo Leute, ich hab schon in einem Englishen Blackhat-Forum nach Hilfe gesucht, hab auch welche bekommen, aber die versteh ich nicht richtig.

Ich habe nach einem Button für meine Facebook-Fanpage gesucht, das die Leute auf "Gefällt mir" drücken und dann gleichzeitig die Meldung teilen...

Ich setz mich mit diesem Thema gerade mal ne Woche auseinander, deshalb entschuldigt meine Unwissenheit, ich weiss aufjedenfall schonmal wo das Script hin muss, aber ich weiss nicht was ich da ändern soll, ich zeig euch einfach mal die Antwort von dem netten User der mir geholfen hat.



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:

Code:
<!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.



Hoffe ihr könnt mir helfen, Tipps zu einer Facebook-Fanpage, sowie eigene Scripte die ihr mir zu dem Thema empfehlen könnt sind auch gerne erwünscht.
 

socialexpert

- Premium Member -
Es gibt auch scripte die du selbst hosten kannst..
Such mal nach pay per post mit Facebook Option.
Der User bekommt dein Content nur zu sehen , wenn er auch mit einem
Pinnwandeintrag ( diesen kannst du selbst bestimmen) bezahlt.

Von Force Face rate ich ab
 
Oben