2
我正在使用PHP SDK並試圖獲取用戶的訪問令牌的到期日期。根據Facebook的文檔Facebook Graph API/debug_token不返回expires_at
GET /debug_token?
input_token={input-token}&
access_token={access-token}
應該返回
{
"data": {
"app_id": 138483919580948,
"application": "Social Cafe",
"expires_at": 1352419328,
"is_valid": true,
"issued_at": 1347235328,
"metadata": {
"sso": "iphone-safari"
},
"scopes": [
"email",
"publish_actions"
],
"user_id": 1207059
}
}
然而,當我運行
$access_token_debug = $facebook->api('/debug_token', 'GET', array(
'input_token' => 'USER_TOKEN',
'access_token' => 'APP_TOKEN'
));
我得到這個返回:
Array
(
[data] => Array
(
[app_id] => 3.31449226977465E+14
[is_valid] => 1
)
)
我真的只有在興趣expires_at
段儀表。還有什麼我應該做的?可能是我忘記啓用的設置?