Wheres the Mistake - There is no one! - But why its not work?
My English is very bad , but a Demo says more than 1000 Words....

okay and here we post some text , becourse , this stupid form does not allow me , to ask a qustion.

so here we have some more text..

My Demo :

My PHP Code :

    <?php
    ini_set('error_reporting', E_ALL);
    
    include "../fb/facebook.php";
    
    # Initialize FaceBook
    $facebook = new Facebook(array(
      'appId'  => 'XXXXXXXXXXXXXXXX',
      'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    ));
    
    
    
    # Already authorized?
    $user = $facebook->getUser();
    
    print_r($user);
    
    
    
    if ($user  == 0)
    {
        
     $url    =   $facebook->getLoginUrl(array('redirect_uri' => 'http://mswebmedia.de/test.php',
                                                'scope' => 'user_likes'));
    
    echo"<a href=\"$url\">Lets Auth</a>";
      
    
    } else {
        
        echo "AUTH!";
    }
    
    ?>
Wheres the Mistake - There is no one! - But why its not work?
===

My English is very bad , but a Demo says more than 1000 Words....

okay and here we post some text , becourse , this stupid form does not allow me , to ask a qustion.

so here we have some more text..

My Demo :

My PHP Code :

    <?php
    ini_set('error_reporting', E_ALL);
    
    include "../fb/facebook.php";
    
    # Initialize FaceBook
    $facebook = new Facebook(array(
      'appId'  => 'XXXXXXXXXXXXXXXX',
      'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    ));
    
    
    
    # Already authorized?
    $user = $facebook->getUser();
    
    print_r($user);
    
    
    
    if ($user  == 0)
    {
        
     $url    =   $facebook->getLoginUrl(array('redirect_uri' => 'http://mswebmedia.de/test.php',
                                                'scope' => 'user_likes'));
    
    echo"<a href=\"$url\">Lets Auth</a>";
      
    
    } else {
        
        echo "AUTH!";
    }
    
    ?>