Skip to content

Commit cb76419

Browse files
authored
Merge pull request #69 from fbsamples/reply_approvals
Reply Approvals Postman Update
2 parents 99dfe1a + 45b74e1 commit cb76419

1 file changed

Lines changed: 150 additions & 1 deletion

File tree

postman/threads-api.postman_collection.json

Lines changed: 150 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@
456456
"description": "When this optional flag is passed, a ghost post is created which will expire after 24 hours.",
457457
"disabled": true
458458

459+
},
460+
{
461+
"key": "enable_reply_approvals",
462+
"value": "true",
463+
"description": "Optional field to enable reply approvals on Threads Posts"
459464
}
460465
]
461466
},
@@ -2348,6 +2353,88 @@
23482353
}
23492354
]
23502355
},
2356+
{
2357+
"name": "Get Threads Pending Replies",
2358+
"request": {
2359+
"method": "GET",
2360+
"header": [],
2361+
"url": {
2362+
"raw": "{{api_host}}/{{thread_id}}/pending_replies?fields={{fields_replies}}&reverse=false&approval_status=pending",
2363+
"host": [
2364+
"{{api_host}}"
2365+
],
2366+
"path": [
2367+
"{{thread_id}}",
2368+
"pending_replies"
2369+
],
2370+
"query": [
2371+
{
2372+
"key": "fields",
2373+
"value": "{{fields_replies}}",
2374+
"description": "A comma-separated list of fields for replies on Threads."
2375+
},
2376+
{
2377+
"key": "reverse",
2378+
"value": "false",
2379+
"description": "Whether or not replies should be sorted in reverse chronological order. The default is true if not specified."
2380+
},
2381+
{
2382+
"key": "approval_status",
2383+
"value": "pending",
2384+
"description": "Set to \"pending\" to only fetch pending replies, set to \"ignored\" to only fetch ignored replies"
2385+
}
2386+
]
2387+
},
2388+
"description": "Use `GET` /pending_replies [endpoint](https://developers.facebook.com/docs/threads/reply-management#retrieve-pending-replies) to fetch a paginated list of all pending replies."
2389+
},
2390+
"response": [
2391+
{
2392+
"name": "Get Threads Pending Replies",
2393+
"originalRequest": {
2394+
"method": "GET",
2395+
"header": [],
2396+
"url": {
2397+
"raw": "{{api_host}}/{{thread_id}}/pending_replies?fields={{fields_replies}}&reverse=false",
2398+
"host": [
2399+
"{{api_host}}"
2400+
],
2401+
"path": [
2402+
"{{thread_id}}",
2403+
"replies"
2404+
],
2405+
"query": [
2406+
{
2407+
"key": "fields",
2408+
"value": "{{fields_replies}}",
2409+
"description": "A comma-separated list of fields for replies on Threads."
2410+
},
2411+
{
2412+
"key": "reverse",
2413+
"value": "false",
2414+
"description": "Whether or not replies should be sorted in reverse chronological order. The default is true if not specified."
2415+
},
2416+
{
2417+
"key": "approval_status",
2418+
"value": "pending",
2419+
"description": "Set to \"pending\" to only fetch pending replies, set to \"ignored\" to only fetch ignored replies"
2420+
}
2421+
]
2422+
}
2423+
},
2424+
"_postman_previewlanguage": "json",
2425+
"header": [
2426+
{
2427+
"key": "Content-Type",
2428+
"value": "application/json",
2429+
"description": "",
2430+
"type": "text"
2431+
}
2432+
],
2433+
"cookie": [],
2434+
"body": "{\n \"data\": [\n {\n \"id\": \"string\",\n \"text\": \"reply\",\n \"timestamp\": \"2024-09-17T20:54:47+0000\",\n \"media_product_type\": \"THREADS\",\n \"media_type\": \"TEXT_POST\",\n \"permalink\": \"string\",\n \"shortcode\": \"string\",\n \"username\": \"string\",\n \"is_quote_post\": false,\n \"has_replies\": false,\n \"is_reply\": true,\n \"is_reply_owned_by_me\": false,\n \"root_post\": {\n \"id\": \"string\"\n },\n \"replied_to\": {\n \"id\": \"string\"\n }\n }\n ],\n \"paging\": {\n \"cursors\": {\n \"before\": \"string\",\n \"after\": \"string\"\n }\n }\n}"
2435+
}
2436+
]
2437+
},
23512438
{
23522439
"name": "Get Threads Conversations",
23532440
"request": {
@@ -2482,6 +2569,68 @@
24822569
}
24832570
]
24842571
},
2572+
{
2573+
"name": "Manage Pending Replies",
2574+
"request": {
2575+
"method": "POST",
2576+
"header": [],
2577+
"url": {
2578+
"raw": "{{api_host}}/{{reply_thread_id}}/manage_pending_reply?approve=true",
2579+
"host": [
2580+
"{{api_host}}"
2581+
],
2582+
"path": [
2583+
"{{reply_thread_id}}",
2584+
"manage_pending_reply"
2585+
],
2586+
"query": [
2587+
{
2588+
"key": "approve",
2589+
"value": "true",
2590+
"description": "Set to true to approve a reply and set to false to ignore a reply."
2591+
}
2592+
]
2593+
},
2594+
"description": "Use `POST` /manage_pending_reply [endpoint](https://developers.facebook.com/docs/threads/reply-management#manage-pending-replies) to approve or ignore pending replies."
2595+
},
2596+
"response": [
2597+
{
2598+
"name": "Manage Pending Replies",
2599+
"originalRequest": {
2600+
"method": "POST",
2601+
"header": [],
2602+
"url": {
2603+
"raw": "{{api_host}}/{{reply_thread_id}}/manage_pending_reply?approve=true",
2604+
"host": [
2605+
"{{api_host}}"
2606+
],
2607+
"path": [
2608+
"{{reply_thread_id}}",
2609+
"manage_pending_reply"
2610+
],
2611+
"query": [
2612+
{
2613+
"key": "approve",
2614+
"value": "true",
2615+
"description": "Set to true to approve a reply and set to false to ignore a reply."
2616+
}
2617+
]
2618+
}
2619+
},
2620+
"_postman_previewlanguage": "json",
2621+
"header": [
2622+
{
2623+
"key": "Content-Type",
2624+
"value": "application/json",
2625+
"description": "",
2626+
"type": "text"
2627+
}
2628+
],
2629+
"cookie": [],
2630+
"body": "{\n \"success\": true\n}"
2631+
}
2632+
]
2633+
},
24852634
{
24862635
"name": "Respond to Replies",
24872636
"request": {
@@ -3596,7 +3745,7 @@
35963745
},
35973746
{
35983747
"key": "fields_replies",
3599-
"value": "id,text,timestamp,media_product_type,media_type,media_url,gif_url,permalink,shortcode,thumbnail_url,username,children,is_quote_post,quoted_post,reposted_post,alt_text,link_attachment_url,has_replies,is_reply,is_reply_owned_by_me,root_post,replied_to,hide_status,reply_audience,poll_attachment{option_a,option_b,option_c,option_d,option_a_votes_percentage,option_b_votes_percentage,option_c_votes_percentage,option_d_votes_percentage,expiration_timestamp},location_id,topic_tag,is_verified,profile_picture_url"
3748+
"value": "id,text,timestamp,media_product_type,media_type,media_url,gif_url,permalink,shortcode,thumbnail_url,username,children,is_quote_post,quoted_post,reposted_post,alt_text,link_attachment_url,has_replies,is_reply,is_reply_owned_by_me,root_post,replied_to,hide_status,reply_audience,poll_attachment{option_a,option_b,option_c,option_d,option_a_votes_percentage,option_b_votes_percentage,option_c_votes_percentage,option_d_votes_percentage,expiration_timestamp},location_id,topic_tag,is_verified,profile_picture_url,reply_approval_status"
36003749
},
36013750
{
36023751
"key": "fields_profile",

0 commit comments

Comments
 (0)