Birgit Egger: Facebook Login

Beitrag lesen

Habs schon durchgelesen, ich bekomm aber immer "undefined" zurück mit dem Code:

  
<html>  
    <head>  
      <title>My Facebook Login Page</title>  
    </head>  
    <body>  
  
      Standardmäßig: we give you access to the user's name and picture  
  
      <div id="fb-root"></div>  
      <script>  
        window.fbAsyncInit = function() {  
          FB.init({  
            appId      : '3383323323232332443", // App ID  
            //channelUrl : '//localhost:8080/FacebookAuthTest/channel.html', // Channel File  
            status     : true, // check login status  
            cookie     : true, // enable cookies to allow the server to access the session  
            xfbml      : true  // parse XFBML  
          });  
          FB.api('/me', function(user) {  
            alert("Das ist der user:  " + user + ", " + user.id);  
            if (user) {  
              var image = document.getElementById('image');  
              image.src = 'http://graph.facebook.com/' + user.id + '/picture';  
              var name = document.getElementById('name');  
              name.innerHTML = user.name  
            }  
          });  
        };  
        // Load the SDK Asynchronously  
        (function(d){  
           var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];  
           if (d.getElementById(id)) {return;}  
           js = d.createElement('script'); js.id = id; js.async = true;  
           js.src = "//connect.facebook.net/en_US/all.js";  
           ref.parentNode.insertBefore(js, ref);  
         }(document));  
      </script>  
  
      <div class="fb-login-button">  
        Login at Atleticus with Facebook  
      </div>  
  
      <input type="submit" value="Facebook Communication" name="fbcomm" onclick="buttonClicked()" />  
  
      <div align="center">  
        <img id="image"/>  
        <div id="name"></div>  
      </div>  
  
    </body>  
 </html>  

In der WEb- Console wird weiters folgendes ausgegeben:

[14:03:38.289] ({error:{message:"Invalid OAuth access token.", type:"OAuthException", code:190}}) @ http://localhost:8080/FacebookAuthTest/facebookcommunication.js:7

Ich hab natürlich gegoogelt, da steht dann unter anderem man soll den tocken dazugeben. Ich weiß aber weder wie noch wo?
Besten Dank!
Birgit