On my facebook app, I'm logging a user in using the Javascript SDK. If OK, I redirect him to this PHP page (designed to illustrate my problem):
test.php:
<?php
include('config.php');
require('phpsdk.php');
$access_token = $facebook->getAccessToken();
echo $access_token;
echo "<br /><br />";
$user = $facebook->getUser();
echo $user;
?>
(phpsdk.php handels the PHP SDK initiation)
Accessing test.php the FIRST time, returns a valid access token and the ID of the logged user. However, when I refresh the page, the access token becomes of the type appID|appSecret. The user is still logged in: getUser still returns the correct user ID.
Anyone knows what's causing this?