The 'attachments' property in my output bundle is empty

I have created a scenario to get the details of a post from a facebook group. Initially, the scenario only consisted of ‘Watch Posts’ and ‘Make a request’ module (To get the response at my desired url, I am using webhook.site for now) but in case of multiple attachments in a single post, I wasn’t getting the desired response so I added ‘Get a post’ module after the ‘Watch posts’ module.

Now when I post in my group with multiple attachments,
‘Watch Posts’ returns output as below:

‘Get a post’ module takes the post_id as the input and returns the output as below:

You can clearly see there are some extra properties (like Attachments) in the above output and it is NOT EMPTY.
Here’s complete output:

[
    {
        "id": "968062121174530_980333669947375",
        "link": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/",
        "name": "Photos from Sagar Singh's post",
        "type": "video",
        "source": "https://video-iad3-2.xx.fbcdn.net/v/t42.1790-2/359543978_293841039812432_6811214633119398890_n.mp4?_nc_cat=103&ccb=1-7&_nc_sid=985c63&efg=eyJybHIiOjMwMCwicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoic3ZlX3NkIn0%3D&_nc_ohc=wWfY4npNHygAX907vHT&rl=300&vabr=117&_nc_ht=video-iad3-2.xx&edm=ADqbNqUEAAAA&oh=00_AfDzfFtfG2hk5bsyqFxFj-H2WcL0FRkmLvZ9I4Y9q5UV3Q&oe=64B5DB82",
        "target": {
            "id": "968062121174530",
            "name": "BrewMyTech"
        },
        "message": "This is a post.",
        "picture": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/347732507_6677334552313123_1611600885941879312_n.jpg?stp=dst-jpg_s130x130&_nc_cat=104&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=OAIq_wUm7DcAX8OkRTQ&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfC998qRTieMKkUfjjDSU1QhTaLfEBl7bg8oeCiTG0N4zw&oe=64B5D56B",
        "object_id": "719005403371798",
        "attachments": [
            {
                "subattachments": {
                    "data": [
                        {
                            "media": {
                                "image": {
                                    "height": 270,
                                    "src": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/347732507_6677334552313123_1611600885941879312_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=OAIq_wUm7DcAX8OkRTQ&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfBLt896e6CRynez9DZPjjQsGgLYGzc85Liei60rXbMbIA&oe=64B5D56B",
                                    "width": 480
                                }
                            },
                            "target": {
                                "id": "719005403371798",
                                "url": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/"
                            },
                            "type": "video",
                            "url": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/"
                        },
                        {
                            "media": {
                                "image": {
                                    "height": 567,
                                    "src": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-6/347591262_127723797034426_1310030601951189577_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=5cd70e&_nc_ohc=Z2gkv9oq1qcAX9lM5uu&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfA9VzSXi1DDVRPLjrScmSXVR1tVKsoUfFzvfYIhYrWU9w&oe=64B65088",
                                    "width": 470
                                }
                            },
                            "target": {
                                "id": "127723800367759",
                                "url": "https://www.facebook.com/photo.php?fbid=127723800367759&set=gm.980333666614042&type=3"
                            },
                            "type": "photo",
                            "url": "https://www.facebook.com/photo.php?fbid=127723800367759&set=gm.980333666614042&type=3"
                        }
                    ]
                },
                "target": {
                    "id": "980333669947375",
                    "url": "https://www.facebook.com/media/set/?set=pcb.980333669947375&type=1"
                },
                "title": "Photos from Sagar Singh's post",
                "type": "album",
                "url": "https://www.facebook.com/media/set/?set=pcb.980333669947375&type=1"
            }
        ],
        "created_time": "2023-07-13T22:07:36.000Z",
        "full_picture": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/347732507_6677334552313123_1611600885941879312_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=OAIq_wUm7DcAX8OkRTQ&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfBLt896e6CRynez9DZPjjQsGgLYGzc85Liei60rXbMbIA&oe=64B5D56B",
        "updated_time": "2023-07-13T22:07:37.000Z",
        "permalink_url": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/"
    }
]

When I tried to post this content via ‘Make a request’ module, The ‘Attachments’ and its sub-properties are empty in my response. I am getting other properties values though.

I even added a ‘Create JSON’ module and generated the schema with the help of sample data (output from ‘Get a post’ module) as shown below:

Now I connected all the four and added the output of ‘Create JSON’ module in my Request content of ‘Make a request’ module.
The flow should be like this: ‘Create JSON’ takes output of ‘Get a post’ as input, processes it and gives JSON string as output which I can send to my url. But the problem here is that the Attachments is not empty in my ‘Get a post’ output but it is empty in the ‘Create JSON’ input.
It was empty before also, when I had not added ‘Create JSON’ and was sending the data directly via ‘Watch Posts’ → ‘Get a post’ → ‘Make a request’.
Here’s the input of ‘Create JSON’:

[
    {
        "id": "968062121174530_980333669947375",
        "link": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/",
        "name": "Photos from Sagar Singh's post",
        "type": "video",
        "source": "https://video-iad3-2.xx.fbcdn.net/v/t42.1790-2/359543978_293841039812432_6811214633119398890_n.mp4?_nc_cat=103&ccb=1-7&_nc_sid=985c63&efg=eyJybHIiOjMwMCwicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoic3ZlX3NkIn0%3D&_nc_ohc=wWfY4npNHygAX907vHT&rl=300&vabr=117&_nc_ht=video-iad3-2.xx&edm=ADqbNqUEAAAA&oh=00_AfDzfFtfG2hk5bsyqFxFj-H2WcL0FRkmLvZ9I4Y9q5UV3Q&oe=64B5DB82",
        "target": {
            "id": "968062121174530",
            "name": "BrewMyTech"
        },
        "picture": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/347732507_6677334552313123_1611600885941879312_n.jpg?stp=dst-jpg_s130x130&_nc_cat=104&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=OAIq_wUm7DcAX8OkRTQ&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfC998qRTieMKkUfjjDSU1QhTaLfEBl7bg8oeCiTG0N4zw&oe=64B5D56B",
        "object_id": "719005403371798",
        "attachments": [
            {
                "url": null,
                "type": null,
                "title": null,
                "target": {
                    "id": null,
                    "url": null
                },
                "subattachments": {
                    "data": [
                        {
                            "url": null,
                            "type": null,
                            "media": {
                                "image": {
                                    "src": null,
                                    "width": null,
                                    "height": null
                                }
                            },
                            "target": {
                                "id": null,
                                "url": null
                            }
                        }
                    ]
                }
            }
        ],
        "created_time": "2023-07-13T22:07:36.000Z",
        "full_picture": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/347732507_6677334552313123_1611600885941879312_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=OAIq_wUm7DcAX8OkRTQ&_nc_ht=scontent-iad3-1.xx&edm=ADqbNqUEAAAA&oh=00_AfBLt896e6CRynez9DZPjjQsGgLYGzc85Liei60rXbMbIA&oe=64B5D56B",
        "updated_time": "2023-07-13T22:07:37.000Z",
        "permalink_url": "https://www.facebook.com/groups/968062121174530/permalink/980333669947375/"
    }
]

It can be seen the attachments and its sub-properties are null which shouldn’t be the case.
Kindly help me out.
Thanks.

Can you show what you mapped into the Attachments fields?

1 Like