How do I use the result from FB FQL multiquery?

前端 未结 2 464
春和景丽
春和景丽 2020-12-31 17:08

I\'m confused by Facebook\'s fql.multiquery method.

I\'m trying to retrieve all the comments on a post, and then the user information for each one as well. I can ge

2条回答
  •  执念已碎
    2020-12-31 17:45

    You could match these results up by looping over the comments and matching the fromid to an id from the users response.

    For example:

        var comments = response[0].fql_result_set;
        var users = response[1].fql_result_set;    
    
        //loop through the comments
        for(var i = 0, j = comments.length; i

提交回复
热议问题