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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "PageFB-FB-SchedulePost",
|
| 3 |
+
"nodes": [
|
| 4 |
+
{
|
| 5 |
+
"parameters": {
|
| 6 |
+
"fileSelector": "={{ $json.ImgPath + '/**.***'}}",
|
| 7 |
+
"options": {}
|
| 8 |
+
},
|
| 9 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 10 |
+
"typeVersion": 1,
|
| 11 |
+
"position": [
|
| 12 |
+
200,
|
| 13 |
+
-380
|
| 14 |
+
],
|
| 15 |
+
"id": "e7cc6080-d4f3-4f3d-886a-2313aed9c697",
|
| 16 |
+
"name": "Image"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"parameters": {
|
| 20 |
+
"fileSelector": "={{ $json.ImgPath +'/Caption/hashtag.txt' }}",
|
| 21 |
+
"options": {
|
| 22 |
+
"fileExtension": ".txt",
|
| 23 |
+
"dataPropertyName": "hashtag"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 27 |
+
"typeVersion": 1,
|
| 28 |
+
"position": [
|
| 29 |
+
220,
|
| 30 |
+
40
|
| 31 |
+
],
|
| 32 |
+
"id": "ed72dc72-bfbc-4993-bd65-944c9f086fe9",
|
| 33 |
+
"name": "Hastag"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"parameters": {
|
| 37 |
+
"command": "=powershell -Command \"$d=Get-Date -Format 'yyyyMMdd'; $p='{{ $('ImgPath').item.json.ImgPath+'/' }}' + $d; New-Item -ItemType Directory -Path $p -Force; Move-Item -Path '{{ $('ImgPath').item.json.ImgPath + '/' + $('Merge1').item.json.fileName }}' -Destination $p\"\n"
|
| 38 |
+
},
|
| 39 |
+
"type": "n8n-nodes-base.executeCommand",
|
| 40 |
+
"typeVersion": 1,
|
| 41 |
+
"position": [
|
| 42 |
+
1380,
|
| 43 |
+
-360
|
| 44 |
+
],
|
| 45 |
+
"id": "f76bf628-d924-4155-89cf-4cfa9c91159e",
|
| 46 |
+
"name": "Move image to Posted date folder"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"parameters": {
|
| 50 |
+
"fileSelector": "={{ $json.ImgPath + '/Caption/description.txt' }}",
|
| 51 |
+
"options": {
|
| 52 |
+
"fileExtension": ".txt",
|
| 53 |
+
"dataPropertyName": "description"
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 57 |
+
"typeVersion": 1,
|
| 58 |
+
"position": [
|
| 59 |
+
220,
|
| 60 |
+
-160
|
| 61 |
+
],
|
| 62 |
+
"id": "c5193895-9d89-4c28-9635-a505de559e4d",
|
| 63 |
+
"name": "Description1"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"parameters": {
|
| 67 |
+
"operation": "text",
|
| 68 |
+
"binaryPropertyName": "description",
|
| 69 |
+
"destinationKey": "description_random",
|
| 70 |
+
"options": {}
|
| 71 |
+
},
|
| 72 |
+
"type": "n8n-nodes-base.extractFromFile",
|
| 73 |
+
"typeVersion": 1,
|
| 74 |
+
"position": [
|
| 75 |
+
420,
|
| 76 |
+
-160
|
| 77 |
+
],
|
| 78 |
+
"id": "9e796c5b-5e83-4dc0-8cfc-e4682fcc2c1a",
|
| 79 |
+
"name": "Extract from File"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"parameters": {
|
| 83 |
+
"jsCode": "const lines = $input.first().json.description_random.split(/\\r?\\n/).filter(Boolean);\n\nconst random = lines[Math.floor(Math.random() * lines.length)];\nreturn [{ json: { description: random } }];"
|
| 84 |
+
},
|
| 85 |
+
"type": "n8n-nodes-base.code",
|
| 86 |
+
"typeVersion": 2,
|
| 87 |
+
"position": [
|
| 88 |
+
580,
|
| 89 |
+
-160
|
| 90 |
+
],
|
| 91 |
+
"id": "b827ecc0-955c-4757-b5a7-ac794169724a",
|
| 92 |
+
"name": "Code"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"parameters": {
|
| 96 |
+
"mode": "combine",
|
| 97 |
+
"combineBy": "combineByPosition",
|
| 98 |
+
"options": {}
|
| 99 |
+
},
|
| 100 |
+
"type": "n8n-nodes-base.merge",
|
| 101 |
+
"typeVersion": 3.1,
|
| 102 |
+
"position": [
|
| 103 |
+
740,
|
| 104 |
+
20
|
| 105 |
+
],
|
| 106 |
+
"id": "15757ed4-bc84-4a62-ac2c-1b09587f14f6",
|
| 107 |
+
"name": "Merge"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"parameters": {
|
| 111 |
+
"operation": "text",
|
| 112 |
+
"binaryPropertyName": "hashtag",
|
| 113 |
+
"destinationKey": "hashtag_random",
|
| 114 |
+
"options": {}
|
| 115 |
+
},
|
| 116 |
+
"type": "n8n-nodes-base.extractFromFile",
|
| 117 |
+
"typeVersion": 1,
|
| 118 |
+
"position": [
|
| 119 |
+
420,
|
| 120 |
+
40
|
| 121 |
+
],
|
| 122 |
+
"id": "0a5fecce-b975-46a1-8631-2009cc2ab145",
|
| 123 |
+
"name": "Extract from File1"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"parameters": {
|
| 127 |
+
"mode": "combine",
|
| 128 |
+
"combineBy": "combineByPosition",
|
| 129 |
+
"options": {}
|
| 130 |
+
},
|
| 131 |
+
"type": "n8n-nodes-base.merge",
|
| 132 |
+
"typeVersion": 3.1,
|
| 133 |
+
"position": [
|
| 134 |
+
920,
|
| 135 |
+
-360
|
| 136 |
+
],
|
| 137 |
+
"id": "d5f86f4f-7d21-4539-a9df-ed9f4fb16ebd",
|
| 138 |
+
"name": "Merge1"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"parameters": {
|
| 142 |
+
"httpRequestMethod": "POST",
|
| 143 |
+
"graphApiVersion": "v22.0",
|
| 144 |
+
"node": "me",
|
| 145 |
+
"edge": "photos",
|
| 146 |
+
"sendBinaryData": true,
|
| 147 |
+
"binaryPropertyName": "data",
|
| 148 |
+
"options": {
|
| 149 |
+
"queryParameters": {
|
| 150 |
+
"parameter": [
|
| 151 |
+
{
|
| 152 |
+
"name": "message",
|
| 153 |
+
"value": "={{ $json.description + \"\\n\\n\" + $json.hashtag_random }}"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name": "published",
|
| 157 |
+
"value": "true"
|
| 158 |
+
}
|
| 159 |
+
]
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
},
|
| 163 |
+
"type": "n8n-nodes-base.facebookGraphApi",
|
| 164 |
+
"typeVersion": 1,
|
| 165 |
+
"position": [
|
| 166 |
+
1060,
|
| 167 |
+
-360
|
| 168 |
+
],
|
| 169 |
+
"id": "adceb034-ed53-42bb-b107-768692e7da42",
|
| 170 |
+
"name": "Facebook Graph API - Photo",
|
| 171 |
+
"credentials": {
|
| 172 |
+
"facebookGraphApi": {
|
| 173 |
+
"id": "lD5bQ4cH7qrQ2UQ3",
|
| 174 |
+
"name": "Facebook Graph - PageFB"
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"parameters": {
|
| 180 |
+
"assignments": {
|
| 181 |
+
"assignments": [
|
| 182 |
+
{
|
| 183 |
+
"id": "8110d0be-82b5-4637-bb67-229481c91723",
|
| 184 |
+
"name": "ImgPath",
|
| 185 |
+
"value": "E:/Autopost-media/PageFB/202506-Images",
|
| 186 |
+
"type": "string"
|
| 187 |
+
}
|
| 188 |
+
]
|
| 189 |
+
},
|
| 190 |
+
"options": {}
|
| 191 |
+
},
|
| 192 |
+
"type": "n8n-nodes-base.set",
|
| 193 |
+
"typeVersion": 3.4,
|
| 194 |
+
"position": [
|
| 195 |
+
-100,
|
| 196 |
+
-160
|
| 197 |
+
],
|
| 198 |
+
"id": "ed8d5c71-d74f-43fb-afb9-8ec1d01d220d",
|
| 199 |
+
"name": "ImgPath"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"parameters": {
|
| 203 |
+
"amount": 10
|
| 204 |
+
},
|
| 205 |
+
"type": "n8n-nodes-base.wait",
|
| 206 |
+
"typeVersion": 1.1,
|
| 207 |
+
"position": [
|
| 208 |
+
1220,
|
| 209 |
+
-360
|
| 210 |
+
],
|
| 211 |
+
"id": "f73ebe72-e6b2-4d4e-9d91-d68743fa8be9",
|
| 212 |
+
"name": "Wait1",
|
| 213 |
+
"webhookId": "8e506978-bb6d-4c9e-963c-b4fa4e02d78f"
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"parameters": {
|
| 217 |
+
"rule": {
|
| 218 |
+
"interval": [
|
| 219 |
+
{
|
| 220 |
+
"field": "hours",
|
| 221 |
+
"hoursInterval": 2,
|
| 222 |
+
"triggerAtMinute": 10
|
| 223 |
+
}
|
| 224 |
+
]
|
| 225 |
+
}
|
| 226 |
+
},
|
| 227 |
+
"type": "n8n-nodes-base.scheduleTrigger",
|
| 228 |
+
"typeVersion": 1.2,
|
| 229 |
+
"position": [
|
| 230 |
+
-380,
|
| 231 |
+
560
|
| 232 |
+
],
|
| 233 |
+
"id": "57e4ee5f-d13c-4ff4-8344-8c1a07eb647f",
|
| 234 |
+
"name": "Schedule Trigger"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"parameters": {
|
| 238 |
+
"content": "# A Image Facebook post",
|
| 239 |
+
"height": 820,
|
| 240 |
+
"width": 1760
|
| 241 |
+
},
|
| 242 |
+
"type": "n8n-nodes-base.stickyNote",
|
| 243 |
+
"typeVersion": 1,
|
| 244 |
+
"position": [
|
| 245 |
+
-140,
|
| 246 |
+
-540
|
| 247 |
+
],
|
| 248 |
+
"id": "c6a49ce4-bdec-4470-9180-675b7f8b7d72",
|
| 249 |
+
"name": "Sticky Note"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"parameters": {
|
| 253 |
+
"content": "# Multi-Photo FB Post\n- Cloudunary\n- Limit 3 Images/post",
|
| 254 |
+
"height": 1320,
|
| 255 |
+
"width": 2080
|
| 256 |
+
},
|
| 257 |
+
"type": "n8n-nodes-base.stickyNote",
|
| 258 |
+
"typeVersion": 1,
|
| 259 |
+
"position": [
|
| 260 |
+
600,
|
| 261 |
+
2740
|
| 262 |
+
],
|
| 263 |
+
"id": "f4e996ac-04fc-443c-a646-b54a58600b01",
|
| 264 |
+
"name": "Sticky Note1"
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"parameters": {
|
| 268 |
+
"conditions": {
|
| 269 |
+
"options": {
|
| 270 |
+
"caseSensitive": true,
|
| 271 |
+
"leftValue": "",
|
| 272 |
+
"typeValidation": "strict",
|
| 273 |
+
"version": 2
|
| 274 |
+
},
|
| 275 |
+
"conditions": [
|
| 276 |
+
{
|
| 277 |
+
"id": "208ef60a-4235-4615-aa4d-ae83905df4d5",
|
| 278 |
+
"leftValue": "={{ $json.id }}",
|
| 279 |
+
"rightValue": "",
|
| 280 |
+
"operator": {
|
| 281 |
+
"type": "string",
|
| 282 |
+
"operation": "notEmpty",
|
| 283 |
+
"singleValue": true
|
| 284 |
+
}
|
| 285 |
+
}
|
| 286 |
+
],
|
| 287 |
+
"combinator": "and"
|
| 288 |
+
},
|
| 289 |
+
"options": {}
|
| 290 |
+
},
|
| 291 |
+
"type": "n8n-nodes-base.if",
|
| 292 |
+
"typeVersion": 2.2,
|
| 293 |
+
"position": [
|
| 294 |
+
1040,
|
| 295 |
+
1120
|
| 296 |
+
],
|
| 297 |
+
"id": "add4e120-f093-414e-b7fe-b20f4d4ddeb9",
|
| 298 |
+
"name": "If"
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"parameters": {
|
| 302 |
+
"options": {
|
| 303 |
+
"reset": false
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
"type": "n8n-nodes-base.splitInBatches",
|
| 307 |
+
"typeVersion": 3,
|
| 308 |
+
"position": [
|
| 309 |
+
1500,
|
| 310 |
+
1300
|
| 311 |
+
],
|
| 312 |
+
"id": "890895a5-8c0d-4adc-bc54-53fd7338afaa",
|
| 313 |
+
"name": "Loop Over Items"
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"parameters": {
|
| 317 |
+
"graphApiVersion": "v22.0",
|
| 318 |
+
"node": "={{ $('ImgPath2').item.json.PageFBFB }}",
|
| 319 |
+
"edge": "=feed",
|
| 320 |
+
"options": {}
|
| 321 |
+
},
|
| 322 |
+
"type": "n8n-nodes-base.facebookGraphApi",
|
| 323 |
+
"typeVersion": 1,
|
| 324 |
+
"position": [
|
| 325 |
+
1800,
|
| 326 |
+
900
|
| 327 |
+
],
|
| 328 |
+
"id": "666ec878-cde2-4a5c-b2bc-7c5daa7644d7",
|
| 329 |
+
"name": "GET",
|
| 330 |
+
"credentials": {
|
| 331 |
+
"facebookGraphApi": {
|
| 332 |
+
"id": "lD5bQ4cH7qrQ2UQ3",
|
| 333 |
+
"name": "Facebook Graph - PageFB"
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"parameters": {
|
| 339 |
+
"maxItems": 3
|
| 340 |
+
},
|
| 341 |
+
"type": "n8n-nodes-base.limit",
|
| 342 |
+
"typeVersion": 1,
|
| 343 |
+
"position": [
|
| 344 |
+
400,
|
| 345 |
+
780
|
| 346 |
+
],
|
| 347 |
+
"id": "61e8be98-f9c2-4c2a-870b-49142ed05430",
|
| 348 |
+
"name": "Limit1"
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"parameters": {
|
| 352 |
+
"fieldsToAggregate": {
|
| 353 |
+
"fieldToAggregate": [
|
| 354 |
+
{
|
| 355 |
+
"fieldToAggregate": "id"
|
| 356 |
+
}
|
| 357 |
+
]
|
| 358 |
+
},
|
| 359 |
+
"options": {}
|
| 360 |
+
},
|
| 361 |
+
"type": "n8n-nodes-base.aggregate",
|
| 362 |
+
"typeVersion": 1,
|
| 363 |
+
"position": [
|
| 364 |
+
1000,
|
| 365 |
+
780
|
| 366 |
+
],
|
| 367 |
+
"id": "e6cf8b49-bffb-454f-9d19-29047d76e536",
|
| 368 |
+
"name": "Aggregate1"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"parameters": {
|
| 372 |
+
"method": "POST",
|
| 373 |
+
"url": "https://api.cloudinary.com/v1_1/dxepor8fh/image/upload",
|
| 374 |
+
"sendBody": true,
|
| 375 |
+
"contentType": "multipart-form-data",
|
| 376 |
+
"bodyParameters": {
|
| 377 |
+
"parameters": [
|
| 378 |
+
{
|
| 379 |
+
"name": "upload_preset",
|
| 380 |
+
"value": "srk_uploads"
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"parameterType": "formBinaryData",
|
| 384 |
+
"name": "file",
|
| 385 |
+
"inputDataFieldName": "data"
|
| 386 |
+
}
|
| 387 |
+
]
|
| 388 |
+
},
|
| 389 |
+
"options": {
|
| 390 |
+
"redirect": {
|
| 391 |
+
"redirect": {}
|
| 392 |
+
}
|
| 393 |
+
}
|
| 394 |
+
},
|
| 395 |
+
"type": "n8n-nodes-base.httpRequest",
|
| 396 |
+
"typeVersion": 4.2,
|
| 397 |
+
"position": [
|
| 398 |
+
640,
|
| 399 |
+
780
|
| 400 |
+
],
|
| 401 |
+
"id": "22ebf0c7-9e5e-46c5-960c-c7908253112d",
|
| 402 |
+
"name": "upload to file server1"
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"parameters": {
|
| 406 |
+
"method": "POST",
|
| 407 |
+
"url": "https://graph.facebook.com/v23.0/me/photos",
|
| 408 |
+
"authentication": "predefinedCredentialType",
|
| 409 |
+
"nodeCredentialType": "facebookGraphApi",
|
| 410 |
+
"sendBody": true,
|
| 411 |
+
"contentType": "multipart-form-data",
|
| 412 |
+
"bodyParameters": {
|
| 413 |
+
"parameters": [
|
| 414 |
+
{
|
| 415 |
+
"name": "url",
|
| 416 |
+
"value": "={{ $json.url }}"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"name": "published",
|
| 420 |
+
"value": "false"
|
| 421 |
+
}
|
| 422 |
+
]
|
| 423 |
+
},
|
| 424 |
+
"options": {}
|
| 425 |
+
},
|
| 426 |
+
"type": "n8n-nodes-base.httpRequest",
|
| 427 |
+
"typeVersion": 4.2,
|
| 428 |
+
"position": [
|
| 429 |
+
820,
|
| 430 |
+
780
|
| 431 |
+
],
|
| 432 |
+
"id": "a57785d3-790e-4b4b-898a-e2b3c0247fef",
|
| 433 |
+
"name": "HTTP Request",
|
| 434 |
+
"credentials": {
|
| 435 |
+
"facebookGraphApi": {
|
| 436 |
+
"id": "lD5bQ4cH7qrQ2UQ3",
|
| 437 |
+
"name": "Facebook Graph - PageFB"
|
| 438 |
+
}
|
| 439 |
+
}
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"parameters": {
|
| 443 |
+
"httpRequestMethod": "POST",
|
| 444 |
+
"graphApiVersion": "v22.0",
|
| 445 |
+
"node": "={{ $('ImgPath2').item.json.PageFBFB }}",
|
| 446 |
+
"edge": "feed",
|
| 447 |
+
"options": {
|
| 448 |
+
"queryParameters": {
|
| 449 |
+
"parameter": [
|
| 450 |
+
{
|
| 451 |
+
"name": "message",
|
| 452 |
+
"value": "={{ $json.description + \"\\n\\n\" + $json.hashtag_random }}"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "attached_media",
|
| 456 |
+
"value": "={{ JSON.stringify($json.id.map(media_id => ({ media_fbid: media_id }))) }}"
|
| 457 |
+
}
|
| 458 |
+
]
|
| 459 |
+
}
|
| 460 |
+
}
|
| 461 |
+
},
|
| 462 |
+
"type": "n8n-nodes-base.facebookGraphApi",
|
| 463 |
+
"typeVersion": 1,
|
| 464 |
+
"position": [
|
| 465 |
+
1440,
|
| 466 |
+
900
|
| 467 |
+
],
|
| 468 |
+
"id": "5d872967-7dfa-4313-9807-38b6999b3d6b",
|
| 469 |
+
"name": "Multi-Photo1",
|
| 470 |
+
"credentials": {
|
| 471 |
+
"facebookGraphApi": {
|
| 472 |
+
"id": "lD5bQ4cH7qrQ2UQ3",
|
| 473 |
+
"name": "Facebook Graph - PageFB"
|
| 474 |
+
}
|
| 475 |
+
}
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"parameters": {
|
| 479 |
+
"fileSelector": "={{ $json.ImgPath + '**.***'}}",
|
| 480 |
+
"options": {}
|
| 481 |
+
},
|
| 482 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 483 |
+
"typeVersion": 1,
|
| 484 |
+
"position": [
|
| 485 |
+
220,
|
| 486 |
+
780
|
| 487 |
+
],
|
| 488 |
+
"id": "df0a3b80-a464-4471-a343-9ffd0273e5ca",
|
| 489 |
+
"name": "Image3"
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"parameters": {
|
| 493 |
+
"fileSelector": "={{ $json.ImgPath +'Caption\\\\\\\\hashtag.txt' }}",
|
| 494 |
+
"options": {
|
| 495 |
+
"fileExtension": ".txt",
|
| 496 |
+
"dataPropertyName": "hashtag"
|
| 497 |
+
}
|
| 498 |
+
},
|
| 499 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 500 |
+
"typeVersion": 1,
|
| 501 |
+
"position": [
|
| 502 |
+
200,
|
| 503 |
+
580
|
| 504 |
+
],
|
| 505 |
+
"id": "cb2e5bca-3ca8-40a2-ad4a-5971c66ac625",
|
| 506 |
+
"name": "Hastag2"
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"parameters": {
|
| 510 |
+
"fileSelector": "={{ $json.ImgPath + 'Caption/description.txt' }}",
|
| 511 |
+
"options": {
|
| 512 |
+
"fileExtension": ".txt",
|
| 513 |
+
"dataPropertyName": "description"
|
| 514 |
+
}
|
| 515 |
+
},
|
| 516 |
+
"type": "n8n-nodes-base.readWriteFile",
|
| 517 |
+
"typeVersion": 1,
|
| 518 |
+
"position": [
|
| 519 |
+
200,
|
| 520 |
+
380
|
| 521 |
+
],
|
| 522 |
+
"id": "d0566983-4ba0-49ff-ae24-86bfad645a28",
|
| 523 |
+
"name": "Description2"
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"parameters": {
|
| 527 |
+
"operation": "text",
|
| 528 |
+
"binaryPropertyName": "description",
|
| 529 |
+
"destinationKey": "description_random",
|
| 530 |
+
"options": {}
|
| 531 |
+
},
|
| 532 |
+
"type": "n8n-nodes-base.extractFromFile",
|
| 533 |
+
"typeVersion": 1,
|
| 534 |
+
"position": [
|
| 535 |
+
380,
|
| 536 |
+
380
|
| 537 |
+
],
|
| 538 |
+
"id": "3a59aa9d-8402-453f-bd48-26f1da438cdd",
|
| 539 |
+
"name": "Extract from File4"
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"parameters": {
|
| 543 |
+
"jsCode": "const lines = $input.first().json.description_random.split(/\\r?\\n/).filter(Boolean);\n\nconst random = lines[Math.floor(Math.random() * lines.length)];\nreturn [{ json: { description: random } }];"
|
| 544 |
+
},
|
| 545 |
+
"type": "n8n-nodes-base.code",
|
| 546 |
+
"typeVersion": 2,
|
| 547 |
+
"position": [
|
| 548 |
+
560,
|
| 549 |
+
380
|
| 550 |
+
],
|
| 551 |
+
"id": "fefa57a6-02cc-4671-a949-20b59d28f1f5",
|
| 552 |
+
"name": "Code2"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"parameters": {
|
| 556 |
+
"operation": "text",
|
| 557 |
+
"binaryPropertyName": "hashtag",
|
| 558 |
+
"destinationKey": "hashtag_random",
|
| 559 |
+
"options": {}
|
| 560 |
+
},
|
| 561 |
+
"type": "n8n-nodes-base.extractFromFile",
|
| 562 |
+
"typeVersion": 1,
|
| 563 |
+
"position": [
|
| 564 |
+
380,
|
| 565 |
+
580
|
| 566 |
+
],
|
| 567 |
+
"id": "c9043785-d899-4244-9cee-a3a8961d0251",
|
| 568 |
+
"name": "Extract from File5"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"parameters": {
|
| 572 |
+
"assignments": {
|
| 573 |
+
"assignments": [
|
| 574 |
+
{
|
| 575 |
+
"id": "8110d0be-82b5-4637-bb67-229481c91723",
|
| 576 |
+
"name": "ImgPath",
|
| 577 |
+
"value": "E:\\\\Autopost-media\\\\PageFB\\\\202506-Images\\\\",
|
| 578 |
+
"type": "string"
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"id": "1f40e74e-0baf-4905-88d4-296e34fab8b9",
|
| 582 |
+
"name": "PageFBFB",
|
| 583 |
+
"value": "694076880451435",
|
| 584 |
+
"type": "string"
|
| 585 |
+
}
|
| 586 |
+
]
|
| 587 |
+
},
|
| 588 |
+
"options": {}
|
| 589 |
+
},
|
| 590 |
+
"type": "n8n-nodes-base.set",
|
| 591 |
+
"typeVersion": 3.4,
|
| 592 |
+
"position": [
|
| 593 |
+
-40,
|
| 594 |
+
560
|
| 595 |
+
],
|
| 596 |
+
"id": "6d46541e-0582-4030-9895-0d62b89c6039",
|
| 597 |
+
"name": "ImgPath2"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"parameters": {
|
| 601 |
+
"command": "=powershell -Command \"$d = Get-Date -Format 'yyyyMMdd'; $p = '{{ $('ImgPath2').item.json.ImgPath }}' + $d; New-Item -ItemType Directory -Path $p -Force; $files = @('{{ $json.mediafile }}'); foreach ($file in $files) { if (Test-Path $file) { Move-Item -Path $file -Destination $p -Force; Write-Host \\\"Moved: $file\\\" } else { Write-Host \\\"File not found: $file\\\" } }\""
|
| 602 |
+
},
|
| 603 |
+
"type": "n8n-nodes-base.executeCommand",
|
| 604 |
+
"typeVersion": 1,
|
| 605 |
+
"position": [
|
| 606 |
+
1680,
|
| 607 |
+
1380
|
| 608 |
+
],
|
| 609 |
+
"id": "6c51d87e-6bda-4320-b0b8-81a522681cd0",
|
| 610 |
+
"name": "Move image to Posted date folder2"
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"parameters": {
|
| 614 |
+
"amount": 10
|
| 615 |
+
},
|
| 616 |
+
"type": "n8n-nodes-base.wait",
|
| 617 |
+
"typeVersion": 1.1,
|
| 618 |
+
"position": [
|
| 619 |
+
1600,
|
| 620 |
+
900
|
| 621 |
+
],
|
| 622 |
+
"id": "1441ba89-00ba-4886-8232-a05ba330bd1a",
|
| 623 |
+
"name": "Wait2",
|
| 624 |
+
"webhookId": "8e506978-bb6d-4c9e-963c-b4fa4e02d78f"
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"parameters": {
|
| 628 |
+
"mode": "combine",
|
| 629 |
+
"combineBy": "combineByPosition",
|
| 630 |
+
"options": {}
|
| 631 |
+
},
|
| 632 |
+
"type": "n8n-nodes-base.merge",
|
| 633 |
+
"typeVersion": 3.1,
|
| 634 |
+
"position": [
|
| 635 |
+
700,
|
| 636 |
+
560
|
| 637 |
+
],
|
| 638 |
+
"id": "1f1bb923-1098-460d-9744-9edcdd7016b1",
|
| 639 |
+
"name": "Caption"
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"parameters": {
|
| 643 |
+
"mode": "combine",
|
| 644 |
+
"combineBy": "combineByPosition",
|
| 645 |
+
"options": {}
|
| 646 |
+
},
|
| 647 |
+
"type": "n8n-nodes-base.merge",
|
| 648 |
+
"typeVersion": 3.1,
|
| 649 |
+
"position": [
|
| 650 |
+
1200,
|
| 651 |
+
900
|
| 652 |
+
],
|
| 653 |
+
"id": "931c035c-2397-4419-ab43-1decc8a743d2",
|
| 654 |
+
"name": "PreparePost"
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"parameters": {},
|
| 658 |
+
"type": "n8n-nodes-base.merge",
|
| 659 |
+
"typeVersion": 3.2,
|
| 660 |
+
"position": [
|
| 661 |
+
1140,
|
| 662 |
+
1300
|
| 663 |
+
],
|
| 664 |
+
"id": "9618f9ae-447c-425d-922f-11d4c5cf1848",
|
| 665 |
+
"name": "MoveFile"
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"parameters": {
|
| 669 |
+
"assignments": {
|
| 670 |
+
"assignments": [
|
| 671 |
+
{
|
| 672 |
+
"id": "16b57477-fa2b-49b3-b987-69b3f7c0b028",
|
| 673 |
+
"name": "mediafile",
|
| 674 |
+
"value": "={{ $('ImgPath2').item.json.ImgPath + $json.fileName}}",
|
| 675 |
+
"type": "string"
|
| 676 |
+
}
|
| 677 |
+
]
|
| 678 |
+
},
|
| 679 |
+
"options": {}
|
| 680 |
+
},
|
| 681 |
+
"type": "n8n-nodes-base.set",
|
| 682 |
+
"typeVersion": 3.4,
|
| 683 |
+
"position": [
|
| 684 |
+
1300,
|
| 685 |
+
1300
|
| 686 |
+
],
|
| 687 |
+
"id": "1e356986-65cb-4845-816d-f7aafe2513ed",
|
| 688 |
+
"name": "ImagePath"
|
| 689 |
+
}
|
| 690 |
+
],
|
| 691 |
+
"pinData": {},
|
| 692 |
+
"connections": {
|
| 693 |
+
"Image": {
|
| 694 |
+
"main": [
|
| 695 |
+
[
|
| 696 |
+
{
|
| 697 |
+
"node": "Merge1",
|
| 698 |
+
"type": "main",
|
| 699 |
+
"index": 0
|
| 700 |
+
}
|
| 701 |
+
]
|
| 702 |
+
]
|
| 703 |
+
},
|
| 704 |
+
"Hastag": {
|
| 705 |
+
"main": [
|
| 706 |
+
[
|
| 707 |
+
{
|
| 708 |
+
"node": "Extract from File1",
|
| 709 |
+
"type": "main",
|
| 710 |
+
"index": 0
|
| 711 |
+
}
|
| 712 |
+
]
|
| 713 |
+
]
|
| 714 |
+
},
|
| 715 |
+
"Description1": {
|
| 716 |
+
"main": [
|
| 717 |
+
[
|
| 718 |
+
{
|
| 719 |
+
"node": "Extract from File",
|
| 720 |
+
"type": "main",
|
| 721 |
+
"index": 0
|
| 722 |
+
}
|
| 723 |
+
]
|
| 724 |
+
]
|
| 725 |
+
},
|
| 726 |
+
"Extract from File": {
|
| 727 |
+
"main": [
|
| 728 |
+
[
|
| 729 |
+
{
|
| 730 |
+
"node": "Code",
|
| 731 |
+
"type": "main",
|
| 732 |
+
"index": 0
|
| 733 |
+
}
|
| 734 |
+
]
|
| 735 |
+
]
|
| 736 |
+
},
|
| 737 |
+
"Code": {
|
| 738 |
+
"main": [
|
| 739 |
+
[
|
| 740 |
+
{
|
| 741 |
+
"node": "Merge",
|
| 742 |
+
"type": "main",
|
| 743 |
+
"index": 0
|
| 744 |
+
}
|
| 745 |
+
]
|
| 746 |
+
]
|
| 747 |
+
},
|
| 748 |
+
"Merge": {
|
| 749 |
+
"main": [
|
| 750 |
+
[
|
| 751 |
+
{
|
| 752 |
+
"node": "Merge1",
|
| 753 |
+
"type": "main",
|
| 754 |
+
"index": 1
|
| 755 |
+
}
|
| 756 |
+
]
|
| 757 |
+
]
|
| 758 |
+
},
|
| 759 |
+
"Extract from File1": {
|
| 760 |
+
"main": [
|
| 761 |
+
[
|
| 762 |
+
{
|
| 763 |
+
"node": "Merge",
|
| 764 |
+
"type": "main",
|
| 765 |
+
"index": 1
|
| 766 |
+
}
|
| 767 |
+
]
|
| 768 |
+
]
|
| 769 |
+
},
|
| 770 |
+
"Merge1": {
|
| 771 |
+
"main": [
|
| 772 |
+
[
|
| 773 |
+
{
|
| 774 |
+
"node": "Facebook Graph API - Photo",
|
| 775 |
+
"type": "main",
|
| 776 |
+
"index": 0
|
| 777 |
+
}
|
| 778 |
+
]
|
| 779 |
+
]
|
| 780 |
+
},
|
| 781 |
+
"Facebook Graph API - Photo": {
|
| 782 |
+
"main": [
|
| 783 |
+
[
|
| 784 |
+
{
|
| 785 |
+
"node": "Wait1",
|
| 786 |
+
"type": "main",
|
| 787 |
+
"index": 0
|
| 788 |
+
}
|
| 789 |
+
]
|
| 790 |
+
]
|
| 791 |
+
},
|
| 792 |
+
"ImgPath": {
|
| 793 |
+
"main": [
|
| 794 |
+
[
|
| 795 |
+
{
|
| 796 |
+
"node": "Image",
|
| 797 |
+
"type": "main",
|
| 798 |
+
"index": 0
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"node": "Description1",
|
| 802 |
+
"type": "main",
|
| 803 |
+
"index": 0
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"node": "Hastag",
|
| 807 |
+
"type": "main",
|
| 808 |
+
"index": 0
|
| 809 |
+
}
|
| 810 |
+
]
|
| 811 |
+
]
|
| 812 |
+
},
|
| 813 |
+
"Wait1": {
|
| 814 |
+
"main": [
|
| 815 |
+
[
|
| 816 |
+
{
|
| 817 |
+
"node": "Move image to Posted date folder",
|
| 818 |
+
"type": "main",
|
| 819 |
+
"index": 0
|
| 820 |
+
}
|
| 821 |
+
]
|
| 822 |
+
]
|
| 823 |
+
},
|
| 824 |
+
"Schedule Trigger": {
|
| 825 |
+
"main": [
|
| 826 |
+
[
|
| 827 |
+
{
|
| 828 |
+
"node": "ImgPath2",
|
| 829 |
+
"type": "main",
|
| 830 |
+
"index": 0
|
| 831 |
+
}
|
| 832 |
+
]
|
| 833 |
+
]
|
| 834 |
+
},
|
| 835 |
+
"If": {
|
| 836 |
+
"main": [
|
| 837 |
+
[
|
| 838 |
+
{
|
| 839 |
+
"node": "MoveFile",
|
| 840 |
+
"type": "main",
|
| 841 |
+
"index": 0
|
| 842 |
+
}
|
| 843 |
+
]
|
| 844 |
+
]
|
| 845 |
+
},
|
| 846 |
+
"Loop Over Items": {
|
| 847 |
+
"main": [
|
| 848 |
+
[],
|
| 849 |
+
[
|
| 850 |
+
{
|
| 851 |
+
"node": "Move image to Posted date folder2",
|
| 852 |
+
"type": "main",
|
| 853 |
+
"index": 0
|
| 854 |
+
}
|
| 855 |
+
]
|
| 856 |
+
]
|
| 857 |
+
},
|
| 858 |
+
"Limit1": {
|
| 859 |
+
"main": [
|
| 860 |
+
[
|
| 861 |
+
{
|
| 862 |
+
"node": "upload to file server1",
|
| 863 |
+
"type": "main",
|
| 864 |
+
"index": 0
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"node": "MoveFile",
|
| 868 |
+
"type": "main",
|
| 869 |
+
"index": 1
|
| 870 |
+
}
|
| 871 |
+
]
|
| 872 |
+
]
|
| 873 |
+
},
|
| 874 |
+
"Aggregate1": {
|
| 875 |
+
"main": [
|
| 876 |
+
[
|
| 877 |
+
{
|
| 878 |
+
"node": "PreparePost",
|
| 879 |
+
"type": "main",
|
| 880 |
+
"index": 0
|
| 881 |
+
}
|
| 882 |
+
]
|
| 883 |
+
]
|
| 884 |
+
},
|
| 885 |
+
"upload to file server1": {
|
| 886 |
+
"main": [
|
| 887 |
+
[
|
| 888 |
+
{
|
| 889 |
+
"node": "HTTP Request",
|
| 890 |
+
"type": "main",
|
| 891 |
+
"index": 0
|
| 892 |
+
}
|
| 893 |
+
]
|
| 894 |
+
]
|
| 895 |
+
},
|
| 896 |
+
"HTTP Request": {
|
| 897 |
+
"main": [
|
| 898 |
+
[
|
| 899 |
+
{
|
| 900 |
+
"node": "Aggregate1",
|
| 901 |
+
"type": "main",
|
| 902 |
+
"index": 0
|
| 903 |
+
}
|
| 904 |
+
]
|
| 905 |
+
]
|
| 906 |
+
},
|
| 907 |
+
"Multi-Photo1": {
|
| 908 |
+
"main": [
|
| 909 |
+
[
|
| 910 |
+
{
|
| 911 |
+
"node": "Wait2",
|
| 912 |
+
"type": "main",
|
| 913 |
+
"index": 0
|
| 914 |
+
}
|
| 915 |
+
]
|
| 916 |
+
]
|
| 917 |
+
},
|
| 918 |
+
"Image3": {
|
| 919 |
+
"main": [
|
| 920 |
+
[
|
| 921 |
+
{
|
| 922 |
+
"node": "Limit1",
|
| 923 |
+
"type": "main",
|
| 924 |
+
"index": 0
|
| 925 |
+
}
|
| 926 |
+
]
|
| 927 |
+
]
|
| 928 |
+
},
|
| 929 |
+
"Hastag2": {
|
| 930 |
+
"main": [
|
| 931 |
+
[
|
| 932 |
+
{
|
| 933 |
+
"node": "Extract from File5",
|
| 934 |
+
"type": "main",
|
| 935 |
+
"index": 0
|
| 936 |
+
}
|
| 937 |
+
]
|
| 938 |
+
]
|
| 939 |
+
},
|
| 940 |
+
"Description2": {
|
| 941 |
+
"main": [
|
| 942 |
+
[
|
| 943 |
+
{
|
| 944 |
+
"node": "Extract from File4",
|
| 945 |
+
"type": "main",
|
| 946 |
+
"index": 0
|
| 947 |
+
}
|
| 948 |
+
]
|
| 949 |
+
]
|
| 950 |
+
},
|
| 951 |
+
"Extract from File4": {
|
| 952 |
+
"main": [
|
| 953 |
+
[
|
| 954 |
+
{
|
| 955 |
+
"node": "Code2",
|
| 956 |
+
"type": "main",
|
| 957 |
+
"index": 0
|
| 958 |
+
}
|
| 959 |
+
]
|
| 960 |
+
]
|
| 961 |
+
},
|
| 962 |
+
"Code2": {
|
| 963 |
+
"main": [
|
| 964 |
+
[
|
| 965 |
+
{
|
| 966 |
+
"node": "Caption",
|
| 967 |
+
"type": "main",
|
| 968 |
+
"index": 0
|
| 969 |
+
}
|
| 970 |
+
]
|
| 971 |
+
]
|
| 972 |
+
},
|
| 973 |
+
"Extract from File5": {
|
| 974 |
+
"main": [
|
| 975 |
+
[
|
| 976 |
+
{
|
| 977 |
+
"node": "Caption",
|
| 978 |
+
"type": "main",
|
| 979 |
+
"index": 1
|
| 980 |
+
}
|
| 981 |
+
]
|
| 982 |
+
]
|
| 983 |
+
},
|
| 984 |
+
"ImgPath2": {
|
| 985 |
+
"main": [
|
| 986 |
+
[
|
| 987 |
+
{
|
| 988 |
+
"node": "Image3",
|
| 989 |
+
"type": "main",
|
| 990 |
+
"index": 0
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"node": "Description2",
|
| 994 |
+
"type": "main",
|
| 995 |
+
"index": 0
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"node": "Hastag2",
|
| 999 |
+
"type": "main",
|
| 1000 |
+
"index": 0
|
| 1001 |
+
}
|
| 1002 |
+
]
|
| 1003 |
+
]
|
| 1004 |
+
},
|
| 1005 |
+
"Move image to Posted date folder2": {
|
| 1006 |
+
"main": [
|
| 1007 |
+
[
|
| 1008 |
+
{
|
| 1009 |
+
"node": "Loop Over Items",
|
| 1010 |
+
"type": "main",
|
| 1011 |
+
"index": 0
|
| 1012 |
+
}
|
| 1013 |
+
]
|
| 1014 |
+
]
|
| 1015 |
+
},
|
| 1016 |
+
"Wait2": {
|
| 1017 |
+
"main": [
|
| 1018 |
+
[
|
| 1019 |
+
{
|
| 1020 |
+
"node": "GET",
|
| 1021 |
+
"type": "main",
|
| 1022 |
+
"index": 0
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"node": "If",
|
| 1026 |
+
"type": "main",
|
| 1027 |
+
"index": 0
|
| 1028 |
+
}
|
| 1029 |
+
]
|
| 1030 |
+
]
|
| 1031 |
+
},
|
| 1032 |
+
"Caption": {
|
| 1033 |
+
"main": [
|
| 1034 |
+
[
|
| 1035 |
+
{
|
| 1036 |
+
"node": "PreparePost",
|
| 1037 |
+
"type": "main",
|
| 1038 |
+
"index": 1
|
| 1039 |
+
}
|
| 1040 |
+
]
|
| 1041 |
+
]
|
| 1042 |
+
},
|
| 1043 |
+
"PreparePost": {
|
| 1044 |
+
"main": [
|
| 1045 |
+
[
|
| 1046 |
+
{
|
| 1047 |
+
"node": "Multi-Photo1",
|
| 1048 |
+
"type": "main",
|
| 1049 |
+
"index": 0
|
| 1050 |
+
}
|
| 1051 |
+
]
|
| 1052 |
+
]
|
| 1053 |
+
},
|
| 1054 |
+
"MoveFile": {
|
| 1055 |
+
"main": [
|
| 1056 |
+
[
|
| 1057 |
+
{
|
| 1058 |
+
"node": "ImagePath",
|
| 1059 |
+
"type": "main",
|
| 1060 |
+
"index": 0
|
| 1061 |
+
}
|
| 1062 |
+
]
|
| 1063 |
+
]
|
| 1064 |
+
},
|
| 1065 |
+
"ImagePath": {
|
| 1066 |
+
"main": [
|
| 1067 |
+
[
|
| 1068 |
+
{
|
| 1069 |
+
"node": "Loop Over Items",
|
| 1070 |
+
"type": "main",
|
| 1071 |
+
"index": 0
|
| 1072 |
+
}
|
| 1073 |
+
]
|
| 1074 |
+
]
|
| 1075 |
+
}
|
| 1076 |
+
},
|
| 1077 |
+
"active": true,
|
| 1078 |
+
"settings": {
|
| 1079 |
+
"executionOrder": "v1",
|
| 1080 |
+
"timezone": "Asia/Bangkok",
|
| 1081 |
+
"callerPolicy": "workflowsFromSameOwner"
|
| 1082 |
+
},
|
| 1083 |
+
"versionId": "5b853a0e-5de3-4727-b591-be7d0be7309a",
|
| 1084 |
+
"meta": {
|
| 1085 |
+
"templateCredsSetupCompleted": true,
|
| 1086 |
+
"instanceId": "52186cf1b8efe42bc5d27bbce9c2dedc42f74757c6fd390a78301306ccc29052"
|
| 1087 |
+
},
|
| 1088 |
+
"id": "chcfJgqm2NoGDQCU",
|
| 1089 |
+
"tags": [
|
| 1090 |
+
{
|
| 1091 |
+
"createdAt": "2025-06-03T16:42:32.022Z",
|
| 1092 |
+
"updatedAt": "2025-06-03T16:42:32.022Z",
|
| 1093 |
+
"id": "6E0gIDsPI6Rume0O",
|
| 1094 |
+
"name": "Social media"
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"createdAt": "2025-06-03T16:45:27.162Z",
|
| 1098 |
+
"updatedAt": "2025-06-03T16:45:27.162Z",
|
| 1099 |
+
"id": "q7URTQC723lARcBj",
|
| 1100 |
+
"name": "Facebook"
|
| 1101 |
+
}
|
| 1102 |
+
]
|
| 1103 |
+
}
|