我是新來的Facebook PHP SDK,我登錄到Facebook,但是當我運行example.php文件時,它總是顯示我已註銷。Facebook PHP SDK顯示未登錄
當我嘗試下面的代碼:
require '../src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'XXXXX',//I am using my own APP ID and KEY
'secret' => 'XXXXX',
));
$user = $facebook->getUser();
echo var_dump($facebook);
這是給我下面的輸出:
object(Facebook)[1]
protected 'appId' => string 'XXXXXX' (length=15)
protected 'appSecret' => string 'XXXXXXX' (length=32)
protected 'user' => int 0
protected 'signedRequest' => null
protected 'state' => string '151c32d04cd0175f24292bda479a2d45' (length=32)
protected 'accessToken' => string '253401284678598|80fa394218494b87c2f96640da5a32eb' (length=48)
protected 'fileUploadSupport' => boolean false
誰能幫我在這?
但爲什麼表明我沒有登錄?爲什麼SDK沒有參加我的會議? – Nick 2012-03-01 16:52:25