Issues with Loop node :c
I am having this error with my flow. I want to get the comments from my posts on my Facebook page, but since it's not possible to get them directly, what I am trying to do first is make an HTTP request to the Meta API to get all the post IDs (in an array) from my Facebook page. Then, I use those IDs to get the comments from each post. Up to this point, it works correctly.
Then, I also have a JSON of several objects:
{
"103302978848090_490151180": {
"data": []
},
"103302978848090_489148631": {
"data": []
}, etc...
I created a node that, when "data" contains something, returns "true". This means that the ID of that specific post has comments, but when there are no comments, i.e., "data" is empty, it returns "false":
[
{
"key": "103302978848090_49258303",
"hasData": false -> this one doesn't contain comments
},
{
"key": "103302978848090_49258303",
"hasData": true -> this one does contain comments
}...etc
]
Then I add a Loop node to iterate over that array of objects, and I execute another conditional to determine if "hasData" is true or false. If it is "true," I proceed to execute my flow; if it is "false," it does nothing.
My problem lies in the Loop Node because it only iterates over the first element of the array, and therefore, it only returns one response.
I hope you can help me, thank you very much
0 Replies