在Facebook上有Event。我使用FQL檢索信息,結果對於不同的訪問令牌是不同的。
選擇查詢爲什麼FB爲不同的訪問令牌返回同一對象的不同結果?
select eid, name, start_time, end_time, update_time, timezone, from event where eid in (321074447988833)
1)訪問令牌是generated:
https://graph.facebook.com/fql?q=select%20eid,%20name,%20pic_big,%20description,%20privacy,%20start_time,%20end_time,%20update_time,%20timezone,%20location,%20venue%20from%20event%20where%20eid%20in%20(321074447988833)&access_token=XXXXX
結果:
"start_time": "2012-09-12",
"end_time": null,
2)真實用戶訪問令牌:
結果:
"start_time": 1347440400,
"end_time": 1347526800,
爲什麼在第一個例子中,我們沒有「END_TIME」(這是正確的),但是,第二我們把它和START_TIME和END_TIME之間的區別是一天。所以看起來事件需要2天接受一次。
我認爲你不應該在互聯網上發佈真正的訪問令牌。 – lolol
請寫出普通的SELECT查詢,而不是URL!很難用'%20'來讀取 – gaussblurinc
謝謝,添加了select查詢 –