开发者

Dependent FQL query with Facebook Batch Request

I amusing Facebook's Batch method unfortunately the second query does not work once there are 2 0r more resu开发者_开发问答lts from the first query. I am trying to get the ids of people who liked a post.

batch:[{
    "method":"GET",
    "name":"get-stream",
    "omit_response_on_success": false,
    "relative_url":wallid+"/feed?date_format=U&limit=2"
},{
    "method":"POST",
    "depends_on":"get-stream",
    "relative_url":'method/fql.query?query=SELECT+user_id+FROM+like+WHERE+post_id=  {result=get-stream:$.data.*.id}'
}]


Shouldn't it be:

WHERE+post_id+in+({result=get-stream:$.data.*.id})

There at the end? Or if you really want just one post to be involved set the limit to 1?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜