Facebook Batch query for posts -


i using below query page post results , comment count in batch query post method.

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 stream post_id in ({result=post-resultset:$.data.*.id})"}]

i got response error code 400

{"error": {"message": "(#601) parser error: unexpected '_435851216505244' @ position 74.","type": "oauthexception","code": 601 }}

what wrong query?

it's due post_id on post-resultset:$.data.*.id not surrounded quotes, such as

"relative_url":"fql?q=select post_id, comment_info stream post_id in (\"1234567_435851216505244\")"

i think it's facebook bug , should report bug on https://developers.facebook.com/bugs

enter image description here


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -