Java コードから fql を使用して返される start_time 値は、グラフ エクスプローラーから返される値とは異なります。
fql:
fql?q={"events":"SELECT eid, name,description, start_time, end_time, pic_small,pic_big, eid,venue,location from event WHERE eid in (SELECT eid FROM event_member WHERE uid = me() and start_time > 1347482366)" ,"locations":"select page_id,location from page where page_id IN (select venue.id from #events)" ,"rsvpStatus":"select eid, rsvp_status from event_member where eid IN (select eid from #events) AND uid = me()"}
Java コードの結果:
{
"data": [
{
"name": "events",
"fql_result_set": [
{
"eid": 495493753795633,
"name": "Yo yo party",
"description": "",
"start_time": **1347656400**,
"end_time": **1347670800**,
"pic_small": "http:\/\/profile.ak.fbcdn.net\/static-ak\/rsrc.php\/v2\/yy\/r\/XcB-JGXohjk.png",
"pic_big": "http:\/\/profile.ak.fbcdn.net\/static-ak\/rsrc.php\/v2\/yn\/r\/5uwzdFmIMKQ.png",
"venue": {
"id": 154409375600
},
"location": "PIKE PLACE FISH MARKET"
}
]
},
{
"name": "locations",
"fql_result_set": [
{
"page_id": 154409375600,
"location": {
"street": "86 Pike Place",
"city": "Seattle",
"state": "WA",
"country": "United States",
"zip": "98101",
"latitude": 47.608639747653,
"longitude": -122.3405485174
}
}
]
},
{
"name": "rsvpStatus",
"fql_result_set": [
{
"eid": 495493753795633,
"rsvp_status": "attending"
}
]
}
]
}
グラフ エクスプローラーの結果:
{
"data": [
{
"name": "events",
"fql_result_set": [
{
"eid": 495493753795633,
"name": "Yo yo party",
"description": "",
"start_time": "**2012-09-14T14:00:00-0700**",
"end_time": "**2012-09-14T18:00:00-0700**",
"pic_small": "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v2/yy/r/XcB-JGXohjk.png",
"pic_big": "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v2/yn/r/5uwzdFmIMKQ.png",
"venue": {
"id": 154409375600
},
"location": "PIKE PLACE FISH MARKET"
}
]
},
{
"name": "locations",
"fql_result_set": [
{
"page_id": 154409375600,
"location": {
"street": "86 Pike Place",
"city": "Seattle",
"state": "WA",
"country": "United States",
"zip": "98101",
"latitude": 47.608639747653,
"longitude": -122.3405485174
}
}
]
},
{
"name": "rsvpStatus",
"fql_result_set": [
{
"eid": 495493753795633,
"rsvp_status": "attending"
}
]
}
]
}
問題は次のとおりです。
- 時間形式の違い
- Java コードに返される start_time と end_time が正しくありません。UNIX タイム スタンプを変換すると、実際のイベントの開始時間と終了時間よりも 1 時間短いことがわかりました。
これは既知の問題ですか? どんな情報でも大歓迎です。