我試圖從Facebook頁面獲取所有帖子和評論。 這工作挺好的,到目前爲止使用下面的FQL:從Facebook頁面獲取所有帖子和評論
{'all_posts':
'SELECT created_time, post_id, actor_id, message, description, comments FROM stream
WHERE source_id=PAGE_ID ORDER BY created_time',
'comments':
'SELECT id, fromid, post_fbid, text, time, post_id FROM comment WHERE post_id
IN (SELECT post_id FROM #all_posts) ORDER BY post_id'
}
我試圖使用RestFB圖書館,但我得到
com.restfb.exception.FacebookResponseStatusException: Received Facebook error response
(code 601): Parser error: unexpected '{' at position 0.
當我嘗試執行查詢:
List<JsonObject> queryResults = facebookClient.executeQuery(query, JsonObject.class);
我該如何解決這個問題?
在此先感謝。
描述什麼是你的查詢要傳遞到'executeQuery()'? – robonerd 2013-02-12 23:19:35
我通過了上述「下面的fql」後面提到的查詢來執行查詢。這就是錯誤,因爲現在我發現了,我必須使用Multiquery-Support。我會立即發佈工作代碼作爲回答。 – 2013-02-12 23:24:57
我稍後會回答,因爲我必須等待8個小時,直到允許我回答。 – 2013-02-12 23:34:25