include_once 'facebook.php';
$fb = new Facebook('api_key', 'secret');
$user = $fb->require_login();
echo $fb->api_client->user;
echo $fb->api_client->session_key;
Whats wrong with the above code? when i first go to the page , it takes me to the facebook for login, after i login, its falling in infinite loop. how can make it print my values??