1
我試圖檢索使用Facebook PHP SDK用戶的事件,但我卡住了,API返回一個空數組事件FQL返回空數組
$user = $me['id'];
$fql = "SELECT eid, name, start_time, end_time
FROM event
WHERE eid IN (SELECT eid
FROM event_member
WHERE uid = 1552544515)
ORDER BY start_time LIMIT 5";
$params = array(
'method' => 'fql.query',
'query' => $fql,
);
try {
$result = $facebook->api($params);
} catch (FacebookApiException $e) {
echo $e->getMessage();
}
在此先感謝。
我假設你有'user_events' [Permission](https://developers.facebook.com/docs/authentication/permissions/)? – Igy
當然,我創建我的Facebook應用程序時做的第一件事,但感謝您的回答 –
因此,當您使用訪問令牌調用/ me /權限時,它確認您已獲得該權限?和Graph/API中的/ me/events也不會返回任何內容? – Igy