Ask Your Question

Revision history [back]

You don't need to use two pipelines. The basic approach here would be to use either the HTTP Client origin or processor to get your list of posts, and the Field Pivoter processor to generate a record for each post. Each record would have the post id as one of its fields.

You can then use a HTTP Client processor to fetch the comments for each of those records, substituting the post id into the query URL using Expression Language, something like:

http://api.facebook.com/v2.1.0/${record:value('post-id')}/comments