2013-04-18 3 views
1

아래 쿼리를 사용하여 일괄 쿼리 POST 메서드에서 페이지 게시물 결과 및 의견 수를 얻습니다. 게시물에 대한 일괄 쿼리

batch : [{"name":"post-resultset","method":"GET","relative_url":"me/posts?offset=0&limit=2"},{"method":"GET","relative_url":"fql?q=SELECT post_id, comment_info from stream where post_id IN ({result=post-resultset:$.data.*.id})"}]

나는 오류 코드와 응답이 쿼리에 어떤 문제가 400

{"error": {"message": "(#601) Parser error: unexpected '_435851216505244' at position 74.","type": "OAuthException","code": 601 }}

있어?

답변

0

그것은 후 결과 집합에 post_id를 때문입니다 :... $ 데이터 * ID 따옴표로 둘러싸여하지 않습니다 같은

"relative_url": 스트림에서 "FQL Q = SELECT post_id를, comment_info 여기서 (\ "1234567_435851216505244 \")로 post_id를 "

가 나는 그것이 페이스 북의 버그라고 생각하고 https://developers.facebook.com/bugs

enter image description here

+1

덕분에 버그를보고해야합니다. [ "omet_response_on_success": false, "name": "post-resultset", "method": "GET", "relative_url": "me/posts"}, { "method": "GET", "relative_url" "fql? q = post_id IN (\ '{result = post-resultset : $. data. *. id} \')"}]이 쿼리는 나를 위해 일하는 스트림에서 comment_info를 선택하십시오. – Mala

+0

@ PonmalaK 안녕하세요, 그래프 API 탐색기를 사용하는 경우에도 작동하지 않기 때문에 나는 당신을 위해 어떻게 작동하는지 궁금합니다 –

+0

코드 200 응답을 받았습니다.하지만 빈 json 반환합니다 – Mala

관련 문제