• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

[Facebook] Pinnwandeintrag von Homepage

domitz

Neues Mitglied
Hey, ich würde gerne auf meiner Homepage ein Pinnwandfeld von Facebook hinstellen, wo man dann einen von mir vorgegebenen Text (den man auch gerne noch bearbeiten kann) direkt von meiner Page auf seine Pinnwand bei Facebook stellen kann.

Habe da bei Facebook etwas gefunden, bekomme das aber leider nicht ans laufen:
Apps on Facebook.com - Facebook-Entwickler

unter Stream Publishing

Hat einer eine gute deutsche Anleitung, wie ich das am besten ans laufen bekomme? Am besten auch mit ein paar Beispielen :)
 
Werbung:
Hmmm... ich hatte gestern bereits eine ausführliche Antwort zu deiner Frage geschrieben, wundere mich allerdings wo diese geblieben ist.

Zuerst einmal ein kleines Beispiel, das ich schnell aufgrund der Dokumentation erstellt habe, daran denken eine AppID anzulegen und diese eintragen!
Code:
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>

<script type="text/javascript">
 FB.ui(
   {
     method: 'stream.publish',
     message: 'getting educated about Facebook Connect',
     attachment: {
       name: 'Connect',
       caption: 'The Facebook Connect JavaScript SDK',
       description: (
         'A small JavaScript library that allows you to harness ' +
         'the power of Facebook, bringing the user\'s identity, ' +
         'social graph and distribution power to your site.'
       ),
       href: 'http://github.com/facebook/connect-js'
     },
     action_links: [
       { text: 'Code', href: 'http://github.com/facebook/connect-js' }
     ],
     user_prompt_message: 'Share your thoughts about Connect'
   },
   function(response) {
     if (response && response.post_id) {
       alert('Post was published.');
     } else {
       alert('Post was not published.');
     }
   }
 );

</script>

Die Einrichtung der ID ist sehr einfach in Englisch auf folgender Seite beschrieben (dreht sich prinzipiell eher um FB Connect, wobei die Grundlagen jedoch gleich sind)
How to add Facebook Connect to your website using Javascript - Pakt.com
 
Zuletzt bearbeitet:
Zurück
Oben